-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
FIX: polar set_rlim allow bottom-only call #13465
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
b17826c
to
280b9a1
Compare
lib/matplotlib/projections/polar.py
Outdated
if top is None and len(bottom) == 2: | ||
top = bottom[1] | ||
bottom = bottom[0] | ||
if top is None: |
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.
set_xlim
uses
if right is None and np.iterable(left):
left, right = left
I think it's reasonable to use the same pattern here.
Note: This will explicitly fail set_rlim((1, 2, 3))
. Your code would let that pass, and I assume it would have failed later on, since the assumption from here on is that bottom is a scalar.
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.
Done!
04288c5
to
907067a
Compare
@QuLogic I think you recently did heavy polar work. Is this fix OK? |
Something went wrong ... Please have a look at my logs. |
…465-on-v3.1.x Backport PR #13465 on branch v3.1.x (FIX: polar set_rlim allow bottom-only call)
PR Summary
closes #13464
Not sure this is the canonical way to do this. Improvements welcome.
Should obviously get a test so this doesn't get missed again.PR Checklist