### Navigation

- index
- modules |
- next |
- previous |
- home|
- examples|
- tutorials|
- pyplot|
- docs »
- The Matplotlib API »

# figure

## `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`([figsize, dpi, facecolor, edgecolor, …]) | The Figure instance supports callbacks through a callbacks attribute which is a `matplotlib.cbook.CallbackRegistry` instance.
`SubplotParams`([left, bottom, right, top, …]) | A class to hold the parameters for a subplot

### Functions

`figaspect`(arg) | Create a figure with specified aspect ratio.