Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0875843

Browse files
committed
Removed unused function
1 parent e91a577 commit 0875843

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/ticks_and_spines/tick-formatters.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,13 @@ def major_formatter(x, pos):
5252
return "[%.2f]" % x
5353

5454

55-
def minor_formatter(x, pos):
56-
return "(%.2f)" % x
57-
58-
5955
ax = plt.subplot(n, 1, 3)
6056
setup(ax)
6157
ax.xaxis.set_major_locator(ticker.MultipleLocator(1.00))
6258
ax.xaxis.set_minor_locator(ticker.MultipleLocator(0.25))
6359
ax.xaxis.set_major_formatter(ticker.FuncFormatter(major_formatter))
64-
ax.text(0.0, 0.5, "FuncFormatter(myfunc)", fontsize=15, transform=ax.transAxes)
60+
ax.text(0.0, 0.5, 'FuncFormatter(lambda x, pos: "[%.2f]" % x)',
61+
fontsize=15, transform=ax.transAxes)
6562

6663

6764
# FormatStr formatter

0 commit comments

Comments
 (0)