<divid="unreleased-message"> You are reading an old version of the documentation (v1.4.3). For the latest version see <ahref="https://matplotlib.org/stable/api/gridspec_api.html">https://matplotlib.org/stable/api/gridspec_api.html</a></div>
<spanid="matplotlib-gridspec"></span><h2><aclass="reference internal" href="#module-matplotlib.gridspec" title="matplotlib.gridspec"><ttclass="xref py py-mod docutils literal"><spanclass="pre">matplotlib.gridspec</span></tt></a><aclass="headerlink" href="#module-matplotlib.gridspec" title="Permalink to this headline">¶</a></h2>
<p><aclass="reference internal" href="#module-matplotlib.gridspec" title="matplotlib.gridspec"><ttclass="xref py py-mod docutils literal"><spanclass="pre">gridspec</span></tt></a> is a module which specifies the location
<ttclass="descname">get_subplot_params</tt><big>(</big><em>fig=None</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpec.get_subplot_params" title="Permalink to this definition">¶</a></dt>
<dd><p>return a dictionary of subplot layout parameters. The default
parameters are from rcParams unless a figure attribute is set.</p>
<ttclass="descname">locally_modified_subplot_params</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpec.locally_modified_subplot_params" title="Permalink to this definition">¶</a></dt>
<dd>padding (height/width) between edges of adjacent subplots.
Defaults to <ttclass="xref py py-obj docutils literal"><spanclass="pre">pad_inches</span></tt>.</dd>
<dt>rect <spanclass="classifier-delimiter">:</span><spanclass="classifier">if rect is given, it is interpreted as a rectangle</span></dt>
<dd>(left, bottom, right, top) in the normalized figure
coordinate that the whole subplots area (including
labels) will fit into. Default is (0, 0, 1, 1).</dd>
</dl>
</dd></dl>
<dlclass="method">
<dtid="matplotlib.gridspec.GridSpec.update">
<ttclass="descname">update</tt><big>(</big><em>**kwargs</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpec.update" title="Permalink to this definition">¶</a></dt>
<dd><p>Update the current values. If any kwarg is None, default to
the current value, if set, otherwise to rc.</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.gridspec.GridSpecBase">
<emclass="property">class </em><ttclass="descclassname">matplotlib.gridspec.</tt><ttclass="descname">GridSpecBase</tt><big>(</big><em>nrows</em>, <em>ncols</em>, <em>height_ratios=None</em>, <em>width_ratios=None</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_geometry</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.get_geometry" title="Permalink to this definition">¶</a></dt>
<dd><p>get the geometry of the grid, e.g., 2,3</p>
<ttclass="descname">get_grid_positions</tt><big>(</big><em>fig</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.get_grid_positions" title="Permalink to this definition">¶</a></dt>
<dd><p>return lists of bottom and top position of rows, left and
<ttclass="descname">get_height_ratios</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.get_height_ratios" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_subplot_params</tt><big>(</big><em>fig=None</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.get_subplot_params" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_width_ratios</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.get_width_ratios" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">new_subplotspec</tt><big>(</big><em>loc</em>, <em>rowspan=1</em>, <em>colspan=1</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.new_subplotspec" title="Permalink to this definition">¶</a></dt>
<dd><p>create and return a SuplotSpec instance.</p>
<ttclass="descname">set_height_ratios</tt><big>(</big><em>height_ratios</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.set_height_ratios" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">set_width_ratios</tt><big>(</big><em>width_ratios</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecBase.set_width_ratios" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_subplot_params</tt><big>(</big><em>fig=None</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecFromSubplotSpec.get_subplot_params" title="Permalink to this definition">¶</a></dt>
<dd><p>return a dictionary of subplot layout parameters.</p>
<ttclass="descname">get_topmost_subplotspec</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.GridSpecFromSubplotSpec.get_topmost_subplotspec" title="Permalink to this definition">¶</a></dt>
<dd><p>get the topmost SubplotSpec instance associated with the subplot</p>
</dd></dl>
</dd></dl>
<dlclass="class">
<dtid="matplotlib.gridspec.SubplotSpec">
<emclass="property">class </em><ttclass="descclassname">matplotlib.gridspec.</tt><ttclass="descname">SubplotSpec</tt><big>(</big><em>gridspec</em>, <em>num1</em>, <em>num2=None</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.SubplotSpec" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_geometry</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.SubplotSpec.get_geometry" title="Permalink to this definition">¶</a></dt>
<dd><p>get the subplot geometry, e.g., 2,2,3. Unlike SuplorParams,
<ttclass="descname">get_gridspec</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.SubplotSpec.get_gridspec" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">get_position</tt><big>(</big><em>fig</em>, <em>return_all=False</em><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.SubplotSpec.get_position" title="Permalink to this definition">¶</a></dt>
<dd><p>update the subplot position from fig.subplotpars</p>
<ttclass="descname">get_topmost_subplotspec</tt><big>(</big><big>)</big><aclass="headerlink" href="#matplotlib.gridspec.SubplotSpec.get_topmost_subplotspec" title="Permalink to this definition">¶</a></dt>
<dd><p>get the topmost SubplotSpec instance associated with the subplot</p>