-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Fix set_ylim
unit handling
#12468
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
Fix set_ylim
unit handling
#12468
Conversation
Allows re-using the code setting up a unit converter interface for Quantity.
Without it, calling set_ylim using unit support on a blank plot results in trying to convert None.
Does this affect #12198? |
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.
This looks good to me. Certainly an oversight that we weren't doing this the same as xlim...
Probably should double-check axes3d. I don't remember if we copied the
implementation, or if we delegated it.
…On Tue, Oct 9, 2018 at 7:23 PM Jody Klymak ***@***.***> wrote:
***@***.**** approved this pull request.
This looks good to me. Certainly an oversight that we weren't doing this
the same as xlim...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12468 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-L6OvHa-_JgQbp9aVk1iu1xaF8H1ks5ujTAMgaJpZM4XUG0d>
.
|
Only definition of a function |
Ah! But you have |
…468-on-v3.0.x Backport PR #12468 on branch v3.0.x (Fix `set_ylim` unit handling)
PR Summary
Code is missing a call to
_process_unit_info
(which is present inset_xlim
). Without it, trying to callset_ylim
on a blank plot using unit values results in the unit converter machinery being called to convert a value ofNone
.PR Checklist