Elffuss BraidHub

kikocis/auto-code-rover public

main · 519 BRawPermalink
1diff --git a/lib/matplotlib/figure.py b/lib/matplotlib/figure.py
2--- a/lib/matplotlib/figure.py
3+++ b/lib/matplotlib/figure.py
4@@ -3023,6 +3023,9 @@ def __getstate__(self):
5 # Set cached renderer to None -- it can't be pickled.
6 state["_cachedRenderer"] = None
7
8+ # discard any changes to the dpi due to pixel ratio changes
9+ state["_dpi"] = state.get('_original_dpi', state['_dpi'])
10+
11 # add version information to the state
12 state['__mpl_version__'] = mpl.__version__
13