<divid="unreleased-message"> You are reading an old version of the documentation (v3.4.0). For the latest version see <ahref="https://matplotlib.org/stable/gallery/showcase/integral.html">https://matplotlib.org/stable/gallery/showcase/integral.html</a></div>
<pclass="last">Click <aclass="reference internal" href="#sphx-glr-download-gallery-showcase-integral-py"><spanclass="std std-ref">here</span></a> to download the full example code</p>
<spanid="sphx-glr-gallery-showcase-integral-py"></span><h1>Integral as the area under a curve<aclass="headerlink" href="#integral-as-the-area-under-a-curve" title="Permalink to this headline">¶</a></h1>
<p>Although this is a simple example, it demonstrates some important tweaks:</p>
<ulclass="simple">
<li>A simple line plot with custom color and line width.</li>
<li>A shaded region created using a Polygon patch.</li>
<li>A text label with mathtext rendering.</li>
<li>figtext calls to label the x- and y-axes.</li>
<li>Use of axis spines to hide the top and right spines.</li>