8000 Adjust number of ticks based on length of axis by mdboom · Pull Request #5588 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

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
Next Next commit
Add get_tick_space to _DummyAxis
  • Loading branch information
mdboom committed Dec 10, 2015
commit 97e0d9f48c10d3f40f76717914c559c4cc23bd8d
4 changes: 4 additions & 0 deletions lib/matplotlib/ticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ def get_data_interval(self):
def set_data_interval(self, vmin, vmax):
self.dataLim.intervalx = vmin, vmax

def get_tick_space(self):
# Just use the long-standing default of nbins==9
return 9


class TickHelper(object):
axis = None
Expand Down
0