| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
AFAICT, `print_figure` is only called in `savefig`, and thus has no relation to backend drawing. We went through a lot of trouble to make `savefig` self-contained, so if this really had any effect, it would be a bug in it instead. But other backends don't do this override and seem to work fine, so these seem superfluous as well. After this change, just opening a window in Qt and using the save button did not seem to break anything, nor did running `savefig` with an interactive window open. I did not test Wx, but given the callers of `print_figure`, I don't see how it could be different. Fixes matplotlib#5234
|
Other option would be to change these to draw_idle, but agree that if this is needed here that is a bug better fixed else where. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
AFAICT, print_figure is only called in savefig, and thus has no relation to backend drawing. We went through a lot of trouble to make savefig self-contained, so if this really had any effect, it would be a bug in it instead. But other backends don't do this override and seem to work fine, so these seem superfluous as well.
After this change, just opening a window in Qt and using the save button did not seem to break anything, nor did running savefig with an interactive window open. I did not test Wx, but given the callers of print_figure, I don't see how it could be different.
Fixes #5234
PR Checklist
Documentation and Tests
Release Notes