Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ba6c0f4

Browse files
committed
No need to remove figure.show when pickling.
We stopped monkeypatching figure.show on the figure instance in 51ffd4b.
1 parent 6bf98fa commit ba6c0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,7 @@ def __getstate__(self):
19611961
# The canvas cannot currently be pickled, but this has the benefit
19621962
# of meaning that a figure can be detached from one canvas, and
19631963
# re-attached to another.
1964-
for attr_to_pop in ('show', 'canvas', '_cachedRenderer'):
1964+
for attr_to_pop in ('canvas', '_cachedRenderer'):
19651965
state.pop(attr_to_pop, None)
19661966

19671967
# add version information to the state

0 commit comments

Comments
 (0)