matplotlib

matplotlib.axis.Tick.is_figure_set

Tick.is_figure_set()

Returns whether the artist is assigned to a Figure.