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

Skip to content

Commit 6a157ae

Browse files
committed
Cosmetic changes
1 parent 79acce0 commit 6a157ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/ticks_and_spines/tick-locators.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def setup(ax):
3838
setup(ax)
3939
ax.xaxis.set_major_locator(ticker.MultipleLocator(0.5))
4040
ax.xaxis.set_minor_locator(ticker.MultipleLocator(0.1))
41-
ax.text(0.0, 0.5, "MultipleLocator (0.5)", fontsize=14,
41+
ax.text(0.0, 0.5, "MultipleLocator(0.5)", fontsize=14,
4242
transform=ax.transAxes)
4343

4444
# Fixed Locator
@@ -48,14 +48,16 @@ def setup(ax):
4848
ax.xaxis.set_major_locator(ticker.FixedLocator(majors))
4949
minors = np.linspace(0, 1, 11)[1:-1]
5050
ax.xaxis.set_minor_locator(ticker.FixedLocator(minors))
51-
ax.text(0.0, 0.5, "FixedLocator([0,1,5])", fontsize=14, transform=ax.transAxes)
51+
ax.text(0.0, 0.5, "FixedLocator([0, 1, 5])", fontsize=14,
52+
transform=ax.transAxes)
5253

5354
# Linear Locator
5455
ax = plt.subplot(n, 1, 4)
5556
setup(ax)
5657
ax.xaxis.set_major_locator(ticker.LinearLocator(3))
5758
ax.xaxis.set_minor_locator(ticker.LinearLocator(31))
58-
ax.text(0.0, 0.5, "LinearLocator(3)", fontsize=14, transform=ax.transAxes)
59+
ax.text(0.0, 0.5, "LinearLocator(numticks=3)",
60+
fontsize=14, transform=ax.transAxes)
5961

6062
# Index Locator
6163
ax = plt.subplot(n, 1, 5)

0 commit comments

Comments
 (0)