-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
calling annotate with nan values for the position still gives error after 3.0.2 #13276
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
We special case no artist, and handle the case of just one artist with an invalid bounding box, but fail on the case with only artists with invalid bounding boxes. I'll have a PR in shortly. Thanks for the extremely clear example (it is going to made into a test!). Could not reproduce the |
Thanks for the reply! Perhaps the
|
…atplotlib/matplotlib#13276 is resolved" This reverts commit 815f506. This seems to no longer be needed and causes several figures to look worse.
Bug report
Bug summary
There was a previous issue #12648 which noted a regression in Matplotlib which meant calling annotate with a nan position caused an error when using the command
plt.tight_layout()
. This issue was then closed by #12651, however with Matplotlib 3.0.2 I still am recieving an error with the following code, which I think should be functionally the same:Actual outcome
Expected outcome
I think this minimal example should just return an empty figure and ignore the annotation with NaN position. Maybe I'm mistaken but I would have thought it should be the same output as
which does work as per the #12651
Matplotlib version
print(matplotlib.get_backend())
): TkAgg(conda installation)
The text was updated successfully, but these errors were encountered: