Version 2.2.3
matplotlib

matplotlib.axis.XAxis.get_figure

XAxis.get_figure()

Return the Figure instance the artist belongs to.