You are reading documentation for the unreleased version of Matplotlib. Try searching for the released version of this page instead?
Version 3.1.0.post1213+g63d96d286
matplotlib
Fork me on GitHub

Table of Contents

matplotlib.pyplot.gcf

matplotlib.pyplot.gcf()[source]

Get the current figure.

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

Examples using matplotlib.pyplot.gcf