matplotlib.axis.Axis.get_figure

Axis.get_figure()

Return the Figure instance the artist belongs to.