Skip to content

[DOC] Tick locators & formatters examples #7084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Sep 22, 2016
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
Changed the MaxN locator example to show the difference with Auto loc…
…ator
  • Loading branch information
rougier committed Sep 11, 2016
commit 015ed4525c55cfdac463856566e7482fbfe50387
6 changes: 3 additions & 3 deletions examples/ticks_and_spines/tick-locators.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ def setup(ax):
# MaxN Locator
ax = plt.subplot(n, 1, 6)
setup(ax)
ax.xaxis.set_major_locator(ticker.MaxNLocator(5))
ax.xaxis.set_minor_locator(ticker.MaxNLocator(50))
ax.text(0.0, 0.5, "MaxN locator", fontsize=16, transform=ax.transAxes)
ax.xaxis.set_major_locator(ticker.MaxNLocator(4))
ax.xaxis.set_minor_locator(ticker.MaxNLocator(40))
ax.text(0.0, 0.5, "MaxN locator (n=4)", fontsize=16, transform=ax.transAxes)

# Log Locator
ax = plt.subplot(n, 1, 7)
Expand Down