# 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 [Deprecated] 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.