<divid="unreleased-message"> You are reading an old version of the documentation (v3.2.2). For the latest version see <ahref="https://matplotlib.org/stable/api/figure_api.html">https://matplotlib.org/stable/api/figure_api.html</a></div>
<spanid="matplotlib-figure"></span><h1><codeclass="docutils literal notranslate"><spanclass="pre">matplotlib.figure</span></code><aclass="headerlink" href="#module-matplotlib.figure" title="Permalink to this headline">¶</a></h1>
<p>The figure module provides the top-level
<aclass="reference internal" href="artist_api.html#matplotlib.artist.Artist" title="matplotlib.artist.Artist"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Artist</span></code></a>, the <aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Figure</span></code></a>, which
contains all the plot elements. The following classes are defined</p>
<dlclass="docutils">
<dt><aclass="reference internal" href="_as_gen/matplotlib.figure.SubplotParams.html#matplotlib.figure.SubplotParams" title="matplotlib.figure.SubplotParams"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">SubplotParams</span></code></a></dt><dd>control the default spacing of the subplots</dd>
<dt><aclass="reference internal" href="_as_gen/matplotlib.figure.Figure.html#matplotlib.figure.Figure" title="matplotlib.figure.Figure"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Figure</span></code></a></dt><dd>Top level container for all plot elements.</dd>
</dl>
<divclass="section" id="classes">
<h2>Classes<aclass="headerlink" href="#classes" title="Permalink to this headline">¶</a></h2>