MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / clf

Method clf

lib/matplotlib/figure.py:1009–1023  ·  view source on GitHub ↗

[*Discouraged*] Alias for the `clear()` method. .. admonition:: Discouraged The use of ``clf()`` is discouraged. Use ``clear()`` instead. Parameters ---------- keep_observers : bool, default: False Set *keep_observers* to True if, f

(self, keep_observers=False)

Source from the content-addressed store, hash-verified

1007
1008 # synonym for `clear`.
1009 def clf(self, keep_observers=False):
1010 """
1011 [*Discouraged*] Alias for the `clear()` method.
1012
1013 .. admonition:: Discouraged
1014
1015 The use of ``clf()`` is discouraged. Use ``clear()`` instead.
1016
1017 Parameters
1018 ----------
1019 keep_observers : bool, default: False
1020 Set *keep_observers* to True if, for example,
1021 a gui widget is tracking the Axes in the figure.
1022 """
1023 return self.clear(keep_observers=keep_observers)
1024
1025 # Note: the docstring below is modified with replace for the pyplot
1026 # version of this function because the method name differs (plt.figlegend)

Callers 1

test_clf_subplotparsFunction · 0.80

Calls 1

clearMethod · 0.95

Tested by 1

test_clf_subplotparsFunction · 0.64