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.