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.