matplotlib

matplotlib.pyplot.gcf

matplotlib.pyplot.gcf()

Get a reference to the current figure.