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

Skip to content

Commit 7e3699e

Browse files
committed
Made layoutboxes private
1 parent fad80e7 commit 7e3699e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,7 @@ def __getstate__(self):
18881888
# set all the layoutbox information to None. kiwisolver
18891889
# objects can't be pickeled, so we lose the layout options
18901890
# at this point.
1891-
state.pop('layoutbox', None)
1891+
state.pop('_layoutbox', None)
18921892
# suptitle:
18931893
if self._suptitle is not None:
18941894
self._suptitle._layoutbox = None

lib/matplotlib/gridspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def __init__(self, nrows, ncols, figure=None,
224224
def __getstate__(self):
225225
state = self.__dict__
226226
try:
227-
state.pop('layoutbox')
227+
state.pop('_layoutbox')
228228
except:
229229
pass
230230
return state
@@ -417,7 +417,7 @@ def __init__(self, gridspec, num1, num2=None):
417417
def __getstate__(self):
418418
state = self.__dict__
419419
try:
420-
state.pop('layoutbox')
420+
state.pop('_layoutbox')
421421
except:
422422
pass
423423
return state

0 commit comments

Comments
 (0)