File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1052,7 +1052,7 @@ def remove(self):
1052
1052
except AttributeError :
1053
1053
# use_gridspec was False
1054
1054
pos = ax .get_position (original = True )
1055
- ax .set_position (pos )
1055
+ ax ._set_position (pos )
1056
1056
else :
1057
1057
# use_gridspec was True
1058
1058
ax .set_subplotspec (subplotspec )
@@ -1296,7 +1296,7 @@ def make_axes_gridspec(parent, **kw):
1296
1296
1297
1297
parent .set_subplotspec (gs [0 ])
1298
1298
parent .update_params ()
1299
- parent .set_position (parent .figbox )
1299
+ parent ._set_position (parent .figbox )
1300
1300
parent .set_anchor (panchor )
1301
1301
1302
1302
fig = parent .get_figure ()
Original file line number Diff line number Diff line change @@ -254,16 +254,16 @@ def update(self, **kwargs):
254
254
if isinstance (ax ._sharex , mpl .axes .SubplotBase ):
255
255
if ax ._sharex .get_subplotspec ().get_gridspec () == self :
256
256
ax ._sharex .update_params ()
257
- ax .set_position (ax ._sharex .figbox )
257
+ ax ._set_position (ax ._sharex .figbox )
258
258
elif isinstance (ax ._sharey , mpl .axes .SubplotBase ):
259
259
if ax ._sharey .get_subplotspec ().get_gridspec () == self :
260
260
ax ._sharey .update_params ()
261
- ax .set_position (ax ._sharey .figbox )
261
+ ax ._set_position (ax ._sharey .figbox )
262
262
else :
263
263
ss = ax .get_subplotspec ().get_topmost_subplotspec ()
264
264
if ss .get_gridspec () == self :
265
265
ax .update_params ()
266
- ax .set_position (ax .figbox )
266
+ ax ._set_position (ax .figbox )
267
267
268
268
def get_subplot_params (self , figure = None , fig = None ):
269
269
"""
You can’t perform that action at this time.
0 commit comments