You are reading an old version of the documentation (v3.1.3). For the latest version see https://matplotlib.org/stable/api/figure_api.html
Version 3.1.3
matplotlib
Fork me on GitHub

Table of Contents

matplotlib.figure

The figure module provides the top-level Artist, the Figure, which contains all the plot elements. The following classes are defined

SubplotParams
control the default spacing of the subplots
Figure
Top level container for all plot elements.

Classes

AxesStack Specialization of the Stack to handle all tracking of Axes in a Figure.
Figure The top level container for all the plot elements.
SubplotParams A class to hold the parameters for a subplot.

Functions

figaspect Calculate the width and height for a figure with a specified aspect ratio.