-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
symlog + minor ticks = exception #6967
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
It seems like the issue has something to do with the way the A custom solution described here seems to mostly solve the issue, which could be absorbed into the repository. |
closed by #8367 |
I've encountered this bug with 1.5.1 today, it's good to know the issue has been fixed in the newer release. While here is the trick to work around with version 1.5.1: from matplotlib.ticker import AutoMinorLocator
from matplotlib.ticker import NullLocator
# turn minor ticks on
self.axes.xaxis.set_minor_locator(AutoMinorLocator())
self.axes.yaxis.set_minor_locator(AutoMinorLocator())
# turn minor ticks off
self.axes.xaxis.set_minor_locator(NullLocator())
self.axes.yaxis.set_minor_locator(NullLocator()) |
Hi, |
Uh oh!
There was an error while loading. Please reload this page.
Present in 1.5.1 and on 2.0.0b3, as well as master I think.
Enabling minor ticks via
minorticks_on
and having scale set to symlog raises an exception. Inminorticks_on
, the input passed to SymmetricalLogLocator is base and subs, but SymmetricalLogLocator is expecting transform and subs. Calling self._transform.base, when self._transform is a base (a float) causes exception,Minimum code to reproduce,
The text was updated successfully, but these errors were encountered: