def is_figure() ->bool:
    """
    ``True`` only if one or more figures are currently open with the
    :mod:`matplotlib.pyplot` GCF API.
    """
    from matplotlib import pyplot
    return bool(pyplot.get_fignums())
