You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Dismiss alert
<divid="unreleased-message"> You are reading an old version of the documentation (v3.0.2). For the latest version see <ahref="https://matplotlib.org/stable/api/axes_api.html">https://matplotlib.org/stable/api/axes_api.html</a></div>
<aclass="reference internal" href="_as_gen/matplotlib.patches.Polygon.html#matplotlib.patches.Polygon" title="matplotlib.patches.Polygon"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Polygon</span></code></a>, etc., and sets the
coordinate system.</p>
<p>The <aclass="reference internal" href="#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Axes</span></code></a> instance supports callbacks through a callbacks
attribute which is a <aclass="reference internal" href="cbook_api.html#matplotlib.cbook.CallbackRegistry" title="matplotlib.cbook.CallbackRegistry"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">CallbackRegistry</span></code></a>
instance. The events you can connect to are 'xlim_changed' and
'ylim_changed' and the callback will be called with func(<em>ax</em>)
where <em>ax</em> is the <aclass="reference internal" href="#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Axes</span></code></a> instance.</p>
<dd><pclass="first last">The x or y <aclass="reference internal" href="axis_api.html#module-matplotlib.axis" title="matplotlib.axis"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">axis</span></code></a> is shared with the x or
y axis in the input <aclass="reference internal" href="#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Axes</span></code></a>.</p>
<td>Base class for subplots, which are <aclass="reference internal" href="#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Axes</span></code></a> instances with additional methods to facilitate generating and manipulating a set of <aclass="reference internal" href="#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Axes</span></code></a> within a figure.</td>
<td>This makes a new class that inherits from <aclass="reference internal" href="_as_gen/matplotlib.axes.SubplotBase.html#matplotlib.axes.SubplotBase" title="matplotlib.axes.SubplotBase"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">SubplotBase</span></code></a> and the given axes_class (which is assumed to be a subclass of <aclass="reference internal" href="#matplotlib.axes.Axes" title="matplotlib.axes.Axes"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">axes.Axes</span></code></a>).</td>
</tr>
</tbody>
</table>
</div>
<divclass="section" id="plotting">
<h2><aclass="toc-backref" href="#id3">Plotting</a><aclass="headerlink" href="#plotting" title="Permalink to this headline">¶</a></h2>
<divclass="section" id="basic">
<h3><aclass="toc-backref" href="#id4">Basic</a><aclass="headerlink" href="#basic" title="Permalink to this headline">¶</a></h3>
<h3><aclass="toc-backref" href="#id11">Unstructured Triangles</a><aclass="headerlink" href="#unstructured-triangles" title="Permalink to this headline">¶</a></h3>
<td>Draw contours on an unstructured triangular grid.</td>
</tr>
</tbody>
</table>
</div>
<divclass="section" id="text-and-annotations">
<h3><aclass="toc-backref" href="#id12">Text and Annotations</a><aclass="headerlink" href="#text-and-annotations" title="Permalink to this headline">¶</a></h3>
<td>Add an inset indicator rectangle to the axes based on the axis limits for an <em>inset_ax</em> and draw connectors between <em>inset_ax</em> and the rectangle.</td>
</tr>
</tbody>
</table>
</div>
<divclass="section" id="fields">
<h3><aclass="toc-backref" href="#id13">Fields</a><aclass="headerlink" href="#fields" title="Permalink to this headline">¶</a></h3>
<h3><aclass="toc-backref" href="#id18">Axis Limits and direction</a><aclass="headerlink" href="#axis-limits-and-direction" title="Permalink to this headline">¶</a></h3>
<td>Extend the <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">datalim</span></code> BBox to include the given <aclass="reference internal" href="transformations.html#matplotlib.transforms.Bbox" title="matplotlib.transforms.Bbox"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Bbox</span></code></a>.</td>
<h3><aclass="toc-backref" href="#id19">Axis Labels, title, and legend</a><aclass="headerlink" href="#axis-labels-title-and-legend" title="Permalink to this headline">¶</a></h3>
<td>Return the <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">Legend</span></code> instance, or None if no legend is defined.</td>
<h3><aclass="toc-backref" href="#id21">Autoscaling and margins</a><aclass="headerlink" href="#autoscaling-and-margins" title="Permalink to this headline">¶</a></h3>