Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3587b8b

Browse files
tacaswelltimhoffm
andcommitted
DOC: strongly suggest to use clear instead
Co-authored-by: Tim Hoffmann <[email protected]>
1 parent 1cbc34a commit 3587b8b

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)