# matplotlib.figure¶

matplotlib.figure implements the following classes:

Figure
Top level Artist, which holds all plot elements.
SubplotParams
Control the default spacing between subplots.

## 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.