matplotlib

matplotlib.axis.YTick.is_figure_set

YTick.is_figure_set()

Returns whether the artist is assigned to a Figure.