Version 3.1.2
matplotlib

matplotlib.axis.XAxis.get_figure

XAxis.get_figure()

Return the Figure instance the artist belongs to.