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

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small change in the multiple locator
  • Loading branch information
rougier committed Sep 14, 2016
commit 729c83baffee94e10b82cea4d26a5c8580250184
7 changes: 4 additions & 3 deletions examples/ticks_and_spines/tick-locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ def setup(ax):
# Multiple Locator
ax = plt.subplot(n, 1, 2)
setup(ax)
ax.xaxis.set_major_locator(ticker.MultipleLocator(1.0))
ax.xaxis.set_minor_locator(ticker.MultipleLocator(0.5))
ax.text(0.0, 0.5, "Multiple locator", fontsize=16, transform=ax.transAxes)
ax.xaxis.set_major_locator(ticker.MultipleLocator(0.5))
ax.xaxis.set_minor_locator(ticker.MultipleLocator(0.1))
ax.text(0.0, 0.5, "Multiple locator (0.5)", fontsize=16,
transform=ax.transAxes)

# Fixed Locator
ax = plt.subplot(n, 1, 3)
Expand Down