@@ -709,7 +709,8 @@ def __init_subclass__(cls, **kwargs):
709709 pending = True ,
710710 message = f'Overriding `Axes.cla` in { cls .__qualname__ } is '
711711 '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 '
713714 f'this to the { cls .__module__ !r} author.' )
714715 cls ._subclass_uses_cla = 'cla' in cls .__dict__ or parent_uses_cla
715716 super ().__init_subclass__ (** kwargs )
@@ -1214,13 +1215,12 @@ def sharey(self, other):
12141215 self .set_ylim (y0 , y1 , emit = False , auto = other .get_autoscaley_on ())
12151216 self .yaxis ._scale = other .yaxis ._scale
12161217
1217- def _clear (self ):
1218+ def __clear (self ):
12181219 """Clear the Axes."""
12191220 # The actual implementation of clear() as long as clear() has to be
12201221 # an adapter delegating to the correct implementation.
12211222 # The implementation can move back into clear() when the
12221223 # deprecation on cla() subclassing expires.
1223- 12241224
12251225 # stash the current visibility state
12261226 if hasattr (self , 'patch' ):
@@ -1344,14 +1344,14 @@ def clear(self):
13441344 if self ._subclass_uses_cla :
13451345 self .cla ()
13461346 else :
1347- self ._clear ()
1347+ self .__clear ()
13481348
13491349 def cla (self ):
13501350 """Clear the Axes."""
13511351 # Act as an alias, or as the superclass implementation depending on the
13521352 # subclass implementation.
13531353 if self ._subclass_uses_cla :
1354- self ._clear ()
1354+ self .__clear ()
13551355 else :
13561356 self .clear ()
13571357
0 commit comments