@@ -709,7 +709,8 @@ def __init_subclass__(cls, **kwargs):
709
709
pending = True ,
710
710
message = f'Overriding `Axes.cla` in { cls .__qualname__ } is '
711
711
'pending deprecation in %(since)s and will be fully '
712
- 'deprecated in favor of `Axes.clear` in the future. Please report '
712
+ 'deprecated in favor of `Axes.clear` in the future. '
713
+ 'Please report '
713
714
f'this to the { cls .__module__ !r} author.' )
714
715
cls ._subclass_uses_cla = 'cla' in cls .__dict__ or parent_uses_cla
715
716
super ().__init_subclass__ (** kwargs )
@@ -1214,13 +1215,12 @@ def sharey(self, other):
1214
1215
self .set_ylim (y0 , y1 , emit = False , auto = other .get_autoscaley_on ())
1215
1216
self .yaxis ._scale = other .yaxis ._scale
1216
1217
1217
- def _clear (self ):
1218
+ def __clear (self ):
1218
1219
"""Clear the Axes."""
1219
1220
# The actual implementation of clear() as long as clear() has to be
1220
1221
# an adapter delegating to the correct implementation.
1221
1222
# The implementation can move back into clear() when the
1222
1223
# deprecation on cla() subclassing expires.
1223
-
1224
1224
1225
1225
# stash the current visibility state
1226
1226
if hasattr (self , 'patch' ):
@@ -1344,14 +1344,14 @@ def clear(self):
1344
1344
if self ._subclass_uses_cla :
1345
1345
self .cla ()
1346
1346
else :
1347
- self ._clear ()
1347
+ self .__clear ()
1348
1348
1349
1349
def cla (self ):
1350
1350
"""Clear the Axes."""
1351
1351
# Act as an alias, or as the superclass implementation depending on the
1352
1352
# subclass implementation.
1353
1353
if self ._subclass_uses_cla :
1354
- self ._clear ()
1354
+ self .__clear ()
1355
1355
else :
1356
1356
self .clear ()
1357
1357
0 commit comments