-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Using of ax.set_ylim() for polar plot leads to "posx and posy should be finite values" error #11202
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
Are you sure you don't want to do |
No, my plot is some kind of astronomical map, so coordinate system must be
like this (with reverse axis, see SO page mentioned above).
ср, 9 мая 2018 г., 2:28 Elan Ernest <notifications@github.com>:
… Are you sure you don't want to do ax.set_ylim(-45, 90) instead of ax.set_ylim(90,
-45)?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#11202 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AT8k07NFfQzzn1phT_jeuE9-JeO5BrFpks5twioVgaJpZM4T3ej3>
.
|
@ImportanceOfBeingErnest oh, sorry, I tried it right now and it works, actually. Weird bug, thank you :) |
I think it would be good not to close this issue just yet. @ussserrr can you reopen? The point is that even if polar plots require to set the limits in a specific order, there should be a clear error out and not some infinite loop crashing. |
also having this issue with a finite looped series of "posx and posy should be finite values" appearing when using ax.text(). The result is fine, so it would be great if we could at least ask Matplotlib to ignore the message as it is taking lots of space when you draw multiple subplots into a single figure. |
We think we closed this so can you open a new issue with a standalone reproducible script and information about what version you are using? Thanks! |
Unfortunately, I don't have enough time to do all of this. Just wanted to point it out. I'm sorry if that's unhelpful. |
I have now been able to reproduce the error with less than 20 lines of code. I cannot share the data, but I can share the code. Would that be helpful? |
It would be good to have a minimal working example. Can you share with dummy-data? |
09192022_NaCl_0-2mmS_3mmD_0D_0-0.01inc_0.5dpm(high res).txt Example of working code is:
Plot functions correctly(ish) but when set to a log-plot the plot malfunctions: the error ""posx and posy should be finite values"" and the entire plot is a blank circle. The 'r' labels are still not correct normally. |
Bug report
Bug summary
I trying to run my 1-year-old polar plot (made with matplotlib 2.0.0) but with current 2.2.2 version get "posx and posy should be finite values" error. I found out that the error is caused by the
ax.set_ylim()
method. Such way to manage the axis I've got from this SO question/answer. So this case looks like broken compatibility with older scripts.Code for reproduction
Actual outcome
Matplotlib version
print(matplotlib.get_backend())
): PyQt5The text was updated successfully, but these errors were encountered: