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: reset to original DPI in getstate#23476
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 is a bit of extra caution in extracting the original DPIjust in case there is a canvas class that does something very funnyand the `_orignial_dpi` attribute does not get set (it is set to the `Figure`instance in the `CanvasBase` init, not in the `Figure` init).closesmatplotlib#23471
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free tosuggest an improvement. |
Merge pull requestmatplotlib#23476 from tacaswell/fix/unpickle_dpiFIX: reset to original DPI in getstate(cherry picked from commit3301248)
…-v3.5.xBackport PR#23476: FIX: reset to original DPI in getstate
PR Summary
There is a bit of extra caution in extracting the original DPI
just in case there is a canvas class that does something very funny
and the
_orignial_dpi
attribute does not get set (it is set to theFigure
instance in the
CanvasBase
init, not in theFigure
init).closes#23471
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).