MaxNLocator for log-scale #1487

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

Comments

Projects
None yet
3 participants
Contributor

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

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

Contributor

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 closed this Dec 1, 2012

Member

dmcdougall commented Dec 1, 2012

@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.

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