matplotlib.pyplot.gcf

matplotlib.pyplot.gcf()[source]

Get the current figure.

If no current figure exists, a new one is created using figure().