-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG: fix autoscale_view with log scale and margins #7410
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
Conversation
LogLocator.view_limits was always clipping vmin to minpos; now it sets vmin to minpos only if vmin <= 0.
There are many failed tests because the test baseline images show the effects of the bug. I am fixing the images. |
Thanks! This looks good. |
Was there a ticket opened for this bug? It sorts of rings a bell… |
Closes #6643. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really understand what minpos
is supposed to represent, but all the test images certainly look better.
@Qlogic, minpos is the minimum positive value in the data. It is used to handle log scales applied to data that might include zero or negative values. |
Thanks @efiring ! |
wow, that is a major improvement! |
LogLocator.view_limits was always clipping vmin to minpos;
now it sets vmin to minpos only if vmin <= 0.