Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
FIX: bbox_inches='tight' with only non-finite bounding boxes#13426
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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 thought I fixed this already,... must have been somewhere else....
fig, ax = plt.subplots() | ||
ax.annotate("", xy=(0, float('nan'))) | ||
ax.set_axis_off() | ||
fig.savefig("bar.png", bbox_inches='tight') |
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.
Please save to a BytesIO to avoid polluting the source tree.
1a4b6ee
to0302451
Compare@anntzer done an force-pushed. |
can be merged post-ci |
Self-merging on 3 approvals and CI passing. |
…finite bounding boxes
…426-on-v3.0.xBackport PR#13426 on branch v3.0.x (FIX: bbox_inches='tight' with only non-finite bounding boxes)
Uh oh!
There was an error while loading.Please reload this page.
closes#13276
PR Summary
PR Checklist