-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
axes.locator_params fails with LogLocator (and most Locator subclasses) #3658
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
Comments
Thanks for the bug report. It turns out that only the Would you be interested in doing this generalization? The easiest path would be to add a |
Interested, yes, but I don't have a proper time window for doing the work... :-( Should this be marked with 'API consistency' and 'low hanging fruit' labels ? |
Good idea. Done. |
axes.locator_params fails with LogLocator (and most Locator subclasses) #3658
There is a "communication" issue between the
axes.locator_params
and theLogLocator
class:Result:
What I get from the traceback is that
locator_params
method forwards the locator attributes (in my casenbins
) to the actual locator object via itsset_params
method. And this method is missing from LogLocator. (set_params
is indeed defined inMaxNLocator
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/ticker.py#L1297)So my question is: shouldn't all
Locator
subclasses have aset_params
method ?(and then, my code example could raise a different error, or maybe a warning, complaining that
LogLocator
makes in fact no use of annbins
parameter!)best,
Pierre
The text was updated successfully, but these errors were encountered: