You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be worth adding #28061, the image resampling docs, and this workaround to the 3.10 release notes? I could see this affecting quite of bit of code with non-obvious slowdowns and OOM errors (which is how I found it in the first place 🙂).
Bug summary
When saving figures with large data images (
imshow
), matplotlib version 3.10.0 uses ~4.2 times the amount of memory, and runs ~2.5 times slower.Code for reproduction
Actual outcome
Expected outcome
This is the result when the shebang in the code example is changed to "matplotlib<3.10", or when the
fig.savefig("test.png")
line is removed.Additional information
May be related to #28904, although switching the backend to Cairo doesn't affect the results.
Operating system
Arch
Matplotlib Version
3.10.0
Matplotlib Backend
agg
Python version
Python 3.13.0
Jupyter version
No response
Installation
None
The text was updated successfully, but these errors were encountered: