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

Skip to content

Commit 11497c9

Browse files
committed
Slightly improved getstate call based on feedback from Thomas Cuypers.
1 parent c142407 commit 11497c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __init__(self, ax,
114114
def __getstate__(self):
115115
state = super(_AxesImageBase, self).__getstate__()
116116
# We can't pickle the C Image cached object.
117-
state.pop('_imcache', None)
117+
state['_imcache'] = None
118118
return state
119119

120120
def get_size(self):

0 commit comments

Comments
 (0)