Skip to content

Commit 6e0ba4c

Browse files
tacaswelltimhoffm
andauthored
DOC: improve docstrings
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 74b2c2d commit 6e0ba4c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/matplotlib/axes/_base.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ 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 for `Axes.clear` in the future. Please report '
712+
'deprecated in favor of `Axes.clear` in the future. Please report '
713713
f'this to the {cls.__module__!r} author.')
714714
cls._subclass_uses_cla = 'cla' in cls.__dict__ or parent_uses_cla
715715
super().__init_subclass__(**kwargs)
@@ -1216,7 +1216,11 @@ def sharey(self, other):
12161216

12171217
def _clear(self):
12181218
"""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+
12201224

12211225
# stash the current visibility state
12221226
if hasattr(self, 'patch'):

0 commit comments

Comments
 (0)