matplotlib.pyplot.close — Matplotlib 3.10.1 documentation (original) (raw)

matplotlib.pyplot.close(fig=None)[source]#

Close a figure window.

Parameters:

figNone or int or str or Figure

The figure to close. There are a number of ways to specify this:

Examples using matplotlib.pyplot.close#