Skip to content
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

MaxNLocator for log-scale #1487

Closed
jarondl opened this issue Nov 12, 2012 · 4 comments
Closed

MaxNLocator for log-scale #1487

jarondl opened this issue Nov 12, 2012 · 4 comments
Milestone

Comments

@jarondl
Copy link

jarondl commented Nov 12, 2012

Hi,
This is a feature request.
The MaxNLocator is a splendid idea, and I wish it could work for log scale as well.
The current solutions aren't that good. See for example this stackoverflow answer:
http://stackoverflow.com/questions/9275406/how-to-select-ticks-at-n-positions-in-a-log-plot

@pelson
Copy link
Member

pelson commented Nov 13, 2012

A MaxNLogLocator seems like a fairly achievable request and would be a fantastic opportunity for those less familiar with the matplotlib codebase to get involved - I have marked this as "low hanging fruit" for that reason.

Thanks @jarondl

@jarondl
Copy link
Author

jarondl commented Dec 1, 2012

Well actually,
I've just found that a change you (@pelson) made four months ago allows that exact behaviour using the regular LogLocator, by using the numticks argument.
bcdf06f

I think that closes my issue.

@dmcdougall
Copy link
Member

@jarondl Thanks. Closing the issue.

Though, we could add some magic so the MaxNLocator calls LogLocator in this case, but I think that's complicating matters somewhat.

@pelson
Copy link
Member

pelson commented Dec 3, 2012

I've just found that a change you (@pelson) made four months ago allows that exact behaviour using the regular LogLocator, by using the numticks argument.

I vaguely remember doing this... sometimes, I wonder what other cool things I've done and can't remember. 😄

Thanks for pointing out @jarondl .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants