@@ -989,7 +989,7 @@ def clear(self, keep_observers=False):
989
989
self .texts = []
990
990
self .images = []
991
991
self .legends = []
992
- self .subplotpars .update ( rc_default = True )
992
+ self .subplotpars .reset ( )
993
993
if not keep_observers :
994
994
self ._axobservers = cbook .CallbackRegistry ()
995
995
self ._suptitle = None
@@ -1312,7 +1312,7 @@ def colorbar(
1312
1312
return cb
1313
1313
1314
1314
def subplots_adjust (self , left = None , bottom = None , right = None , top = None ,
1315
- wspace = None , hspace = None , rc_default = False ):
1315
+ wspace = None , hspace = None ):
1316
1316
"""
1317
1317
Adjust the subplot layout parameters.
1318
1318
@@ -1341,10 +1341,6 @@ def subplots_adjust(self, left=None, bottom=None, right=None, top=None,
1341
1341
hspace : float, optional
1342
1342
The height of the padding between subplots,
1343
1343
as a fraction of the average Axes height.
1344
- rc_default : bool
1345
- Determine the defaults. *False*, the default, and the values
1346
- are unchanged. *True* and the values are taken from
1347
- :rc:`figure.subplot.*`
1348
1344
"""
1349
1345
if (self .get_layout_engine () is not None and
1350
1346
not self .get_layout_engine ().adjust_compatible ):
@@ -1353,8 +1349,7 @@ def subplots_adjust(self, left=None, bottom=None, right=None, top=None,
1353
1349
"incompatible with subplots_adjust and/or tight_layout; "
1354
1350
"not calling subplots_adjust." )
1355
1351
return
1356
- self .subplotpars .update (left , bottom , right , top , wspace , hspace ,
1357
- rc_default = rc_default )
1352
+ self .subplotpars .update (left , bottom , right , top , wspace , hspace )
1358
1353
for ax in self .axes :
1359
1354
if ax .get_subplotspec () is not None :
1360
1355
ax ._set_position (ax .get_subplotspec ().get_position (self ))
0 commit comments