matplotlib.figure.Figure.clear

Figure.clear(keep_observers=False)[source]

Clear the figure.

Parameters:
keep_observersbool, default: False

Set keep_observers to True if, for example, a gui widget is tracking the Axes in the figure.

© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.figure.Figure.clear.html