-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: savefig with bbox_inches does not save image in the figure #25116
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
I would expect this is much the same as #23399. So far as I can tell |
@chappet if you want help doing what you want, suggest a discussion over at https://discourse.matplotlib.org. Your bug report has many other issues with it that make the results confounding. |
Can I work on this issue? I am new to this but interested to work on it |
Anyone can work on any issue, but I don't think we have isolated a problem yet. |
The bug is very likely a miss-matched assumption between matplotlib/lib/matplotlib/image.py Lines 1394 to 1409 in 5ec2bd2
bbox_inches code is doing that is causing the image to be drawn "off screen".
Given the example images, |
Thanks for your advice. |
I'm closing as a duplicate of #23399, but we probably should fix figimage for modern hiDPI... |
Bug summary
The image added in the text bbox is not saved with savefig if setting a bbox.
savefig without option do save the image
Code for reproduction
Actual outcome
Expected outcome
Additional information
No response
Operating system
Win, Python 3.8, Matplotlib 3.6.2
Matplotlib Version
3.6.2
Matplotlib Backend
QtAgg
Python version
3.8.2
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: