Skip to content

Commit 5caa225

Browse files
tacaswelltimhoffm
andauthored
DOC: strongly suggest to use clear instead
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 1cbc34a commit 5caa225

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/figure.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,10 @@ def clf(self, keep_observers=False):
954954
"""
955955
Alias for the `clear()` method.
956956
957+
.. admonition:: Discouraged
958+
959+
The use of ``clf()`` is discouraged. Use ``clear()`` instead.
960+
957961
Parameters
958962
----------
959963
keep_observers: bool, default: False

0 commit comments

Comments
 (0)