Skip to content

Adjust number of ticks based on length of axis #5588

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 13 commits into from
Dec 14, 2015
Prev Previous commit
Fix backward compatibility on MaxNLocator
  • Loading branch information
mdboom committed Dec 14, 2015
commit eafa79b59650f6c0ec3bb9aacdbf61bcc6ed6009
2 changes: 1 addition & 1 deletion lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1341,7 +1341,7 @@ class MaxNLocator(Locator):
"""
Select no more than N intervals at nice locations.
"""
default_params = dict(nbins='auto',
default_params = dict(nbins=10,
steps=None,
trim=True,
integer=False,
Expand Down