-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG: shared log axes lose _minpos and revert to default #7587
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
The first example is the sort of thing we have to expect; classic style brings things close to 1.5.3, but trying to guarantee identical results is the road to insanity. There is nothing wrong with the 2.0 classic version. |
That second example looks familiar... It seems like we have dealt with this, or at least had it pointed out, some time ago. Or maybe I saw it in devdocs but passed over it without investigating. |
Maybe you were thinking of #7410? It seems to be a similar topic. |
This is related to #7493. |
Closes matplotlib#7595, matplotlib#7493, matplotlib#7587. Bbox._minpos is now initialized to [np.inf, np.inf] instead of [1e-7, 1e-7]. Old code with a colorbar in which the formatter is set to a LogFormatter and a SymlogNorm is used now works again (although the results are better in 2.0 if the colorbar is left to handle the formatter automatically). LogLocator now has its own nonsingular() method which provides a reasonable starting point for a log axis when no data have been plotted.
Closes matplotlib#7595, matplotlib#7493, matplotlib#7587. Bbox._minpos is now initialized to [np.inf, np.inf] instead of [1e-7, 1e-7]. Old code with a colorbar in which the formatter is set to a LogFormatter and a SymlogNorm is used now works again (although the results are better in 2.0 if the colorbar is left to handle the formatter automatically). LogLocator now has its own nonsingular() method which provides a reasonable starting point for a log axis when no data have been plotted.
Closes matplotlib#7595, matplotlib#7493, matplotlib#7587. Bbox._minpos is now initialized to [np.inf, np.inf] instead of [1e-7, 1e-7]. Old code with a colorbar in which the formatter is set to a LogFormatter and a SymlogNorm is used now works again (although the results are better in 2.0 if the colorbar is left to handle the formatter automatically). LogLocator now has its own nonsingular() method which provides a reasonable starting point for a log axis when no data have been plotted.
Closed by #7598. |
This example showcases two instances where the view limits in 1.5.3 are not the same as when using 2.0.0rc1 with the classic style.
For the first plot, with 1.5.3, the resulting image, with view limits (-0.1, 0.15), is:
but with 2.0.0rc1 in classic style, its view limits are (-0.1, 0.1):

For the second plot, with 1.5.3, the result image, with view limits (10^-3, 10^2), is:

but with 2.0.0rc1 in classic style, its view limits are (10^-7, 10^2):

The interesting thing is that this view limit is only triggered if something is plotted in both axes.
The text was updated successfully, but these errors were encountered: