<spanid="id1"></span><h1>Tutorials<aclass="headerlink" href="#tutorials" title="Link to this heading">#</a></h1>
<p>This page contains a few tutorials for using Matplotlib. For the old tutorials, see <aclass="reference internal" href="#user-guide-tutorials"><spanclass="std std-ref">below</span></a>.</p>
<p>For shorter examples, see our <aclass="reference internal" href="../gallery/index.html#examples-index"><spanclass="std std-ref">examples page</span></a>.
You can also find <aclass="reference internal" href="../users/resources/index.html#resources-index"><spanclass="std std-ref">external resources</span></a> and
a <aclass="reference internal" href="../users/faq.html#howto-faq"><spanclass="std std-ref">FAQ</span></a> in our <aclass="reference internal" href="../users/index.html#users-guide-index"><spanclass="std std-ref">user guide</span></a>.</p>
<divclass="sphx-glr-thumbnails"><divclass="sphx-glr-thumbcontainer" tooltip="An introduction to the pyplot interface. Please also see quick_start for an overview of how Matplotlib works and api_interfaces for an explanation of the trade-offs between the supported user APIs."><imgalt="" loading="lazy" src="../_images/sphx_glr_pyplot_thumb.png" />
</div><divclass="sphx-glr-thumbcontainer" tooltip="Matplotlib's primary and universal API is the Axes interface <api_interfaces>. While it is clearly structured and powerful, it can sometimes feel overly verbose and thus cumbersome to write. This page collects patterns for condensing the code of the Axes-based API and achieving the same results with less typing for many simpler plots."><imgalt="" loading="lazy" src="../_images/sphx_glr_coding_shortcuts_thumb.png" />
</div><divclass="sphx-glr-thumbcontainer" tooltip="This tutorial will use Matplotlib's implicit plotting interface, pyplot. This interface maintains global state, and is very useful for quickly and easily experimenting with various plot settings. The alternative is the explicit, which is more suitable for large application development. For an explanation of the tradeoffs between the implicit and explicit interfaces see api_interfaces and the Quick start guide <quick_start> to start using the explicit interface. For now, let's get on with the implicit approach:"><imgalt="" loading="lazy" src="../_images/sphx_glr_images_thumb.png" />
</div><divclass="sphx-glr-thumbcontainer" tooltip="This tutorial aims to show the beginning, middle, and end of a single visualization using Matplotlib. We'll begin with some raw data and end by saving a figure of a customized visualization. Along the way we try to highlight some neat features and best-practices using Matplotlib."><imgalt="" loading="lazy" src="../_images/sphx_glr_lifecycle_thumb.png" />
<p><aclass="reference internal" href="lifecycle.html"><spanclass="doc">The Lifecycle of a Plot</span></a></p>
<divclass="sphx-glr-thumbnail-title">The Lifecycle of a Plot</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="Using Artist objects to render on the canvas."><imgalt="" loading="lazy" src="../_images/sphx_glr_artists_thumb.png" />
<spanid="id2"></span><h2>User guide tutorials<aclass="headerlink" href="#user-guide-tutorials" title="Link to this heading">#</a></h2>
<p>Many of our tutorials were moved from this section to <aclass="reference internal" href="../users/index.html#users-guide-index"><spanclass="std std-ref">Using Matplotlib</span></a>:</p>
<sectionid="introductory">
<h3>Introductory<aclass="headerlink" href="#introductory" title="Link to this heading">#</a></h3>
<li><p><aclass="reference internal" href="../users/explain/customizing.html#customizing"><spanclass="std std-ref">Customizing Matplotlib with style sheets and rcParams</span></a></p></li>
<li><p><aclass="reference internal" href="../users/explain/animations/animations.html#animations"><spanclass="std std-ref">Animations using Matplotlib</span></a></p></li>
</ul>
</section>
<sectionid="intermediate">
<h3>Intermediate<aclass="headerlink" href="#intermediate" title="Link to this heading">#</a></h3>
<li><p><aclass="reference internal" href="../users/explain/axes/arranging_axes.html#arranging-axes"><spanclass="std std-ref">Arranging multiple Axes in a Figure</span></a></p></li>
<li><p><aclass="reference internal" href="../users/explain/artists/imshow_extent.html#imshow-extent"><spanclass="std std-ref">Positioning and orientation of imshow images</span></a></p></li>
</ul>
</section>
<sectionid="advanced">
<h3>Advanced<aclass="headerlink" href="#advanced" title="Link to this heading">#</a></h3>
<ulclass="simple">
<li><p><aclass="reference internal" href="../users/explain/animations/blitting.html#blitting"><spanclass="std std-ref">Faster rendering by using blitting</span></a></p></li>