matplotlib.pyplot.fignum_exists

matplotlib.pyplot.fignum_exists(num)[source]

Return whether the figure with the given id exists.

Parameters:
numint or str

A figure identifier.

Returns:
bool

Whether or not a figure with id num exists.

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