File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -709,7 +709,7 @@ 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 for `Axes.clear` in the future. Please report '
712
+ 'deprecated in favor of `Axes.clear` in the future. Please report '
713
713
f'this to the { cls .__module__ !r} author.' )
714
714
cls ._subclass_uses_cla = 'cla' in cls .__dict__ or parent_uses_cla
715
715
super ().__init_subclass__ (** kwargs )
@@ -1216,7 +1216,11 @@ def sharey(self, other):
1216
1216
1217
1217
def _clear (self ):
1218
1218
"""Clear the Axes."""
1219
- # Note: this is called by Axes.__init__()
1219
+ # The actual implementation of clear() as long as clear() has to be
1220
+ # an adapter delegating to the correct implementation.
1221
+ # The implementation can move back into clear() when the
1222
+ # deprecation on cla() subclassing expires.
1223
+
1220
1224
1221
1225
# stash the current visibility state
1222
1226
if hasattr (self , 'patch' ):
You can’t perform that action at this time.
0 commit comments