A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://matplotlib.org/devdocs/devel/../install/../api/_as_gen/matplotlib.pyplot.close.html below:

matplotlib.pyplot.close — Matplotlib 3.11.0.dev1079+g1663e9af1b documentation

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

Close a figure window, and unregister it from pyplot.

Parameters:
figNone or int or str or Figure

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

  • None: the current figure

  • Figure: the given Figure instance

  • int: a figure number

  • str: a figure name

  • 'all': all figures

Notes

pyplot maintains a reference to figures created with figure(). When work on the figure is completed, it should be closed, i.e. deregistered from pyplot, to free its memory (see also :rc:figure.max_open_warning). Closing a figure window created by show() automatically deregisters the figure. For all other use cases, most prominently savefig() without show(), the figure must be deregistered explicitly using close().

Examples using matplotlib.pyplot.close#

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4