<h2>Plots of arrays and fields<aclass="headerlink" href="#plots-of-arrays-and-fields" title="Permalink to this heading">#</a></h2>
<p>Plotting for arrays of data <codeclass="docutils literal notranslate"><spanclass="pre">Z(x,</span><spanclass="pre">y)</span></code> and fields <codeclass="docutils literal notranslate"><spanclass="pre">U(x,</span><spanclass="pre">y),</span><spanclass="pre">V(x,</span><spanclass="pre">y)</span></code>.</p>
</div><divclass="sphx-glr-thumbcontainer" tooltip="~.axes.Axes.pcolormesh is more flexible than ~.axes.Axes.imshow in that the x and y vectors nee..."><imgalt="pcolormesh(X, Y, Z)" src="../_images/sphx_glr_pcolormesh_thumb.png" />
<p><aclass="reference internal" href="arrays/pcolormesh.html#sphx-glr-plot-types-arrays-pcolormesh-py"><spanclass="std std-ref">pcolormesh(X, Y, Z)</span></a></p>
<divclass="sphx-glr-thumbnail-title">pcolormesh(X, Y, Z)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.contour."><imgalt="contour(X, Y, Z)" src="../_images/sphx_glr_contour_thumb.png" />
<p><aclass="reference internal" href="arrays/contour.html#sphx-glr-plot-types-arrays-contour-py"><spanclass="std std-ref">contour(X, Y, Z)</span></a></p>
<divclass="sphx-glr-thumbnail-title">contour(X, Y, Z)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.contourf."><imgalt="contourf(X, Y, Z)" src="../_images/sphx_glr_contourf_thumb.png" />
<p><aclass="reference internal" href="arrays/contourf.html#sphx-glr-plot-types-arrays-contourf-py"><spanclass="std std-ref">contourf(X, Y, Z)</span></a></p>
<divclass="sphx-glr-thumbnail-title">contourf(X, Y, Z)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.barbs."><imgalt="barbs(X, Y, U, V)" src="../_images/sphx_glr_barbs_thumb.png" />
<p><aclass="reference internal" href="arrays/barbs.html#sphx-glr-plot-types-arrays-barbs-py"><spanclass="std std-ref">barbs(X, Y, U, V)</span></a></p>
<divclass="sphx-glr-thumbnail-title">barbs(X, Y, U, V)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.quiver."><imgalt="quiver(X, Y, U, V)" src="../_images/sphx_glr_quiver_thumb.png" />
<p><aclass="reference internal" href="arrays/quiver.html#sphx-glr-plot-types-arrays-quiver-py"><spanclass="std std-ref">quiver(X, Y, U, V)</span></a></p>
<divclass="sphx-glr-thumbnail-title">quiver(X, Y, U, V)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.streamplot."><imgalt="streamplot(X, Y, U, V)" src="../_images/sphx_glr_streamplot_thumb.png" />
<p><aclass="reference internal" href="arrays/streamplot.html#sphx-glr-plot-types-arrays-streamplot-py"><spanclass="std std-ref">streamplot(X, Y, U, V)</span></a></p>
<divclass="sphx-glr-thumbnail-title">streamplot(X, Y, U, V)</div>
</div></div></section>
<sectionid="statistics-plots">
<h2>Statistics plots<aclass="headerlink" href="#statistics-plots" title="Permalink to this heading">#</a></h2>
<h2>Unstructured coordinates<aclass="headerlink" href="#unstructured-coordinates" title="Permalink to this heading">#</a></h2>
<p>Sometimes we collect data <codeclass="docutils literal notranslate"><spanclass="pre">z</span></code> at coordinates <codeclass="docutils literal notranslate"><spanclass="pre">(x,y)</span></code> and want to visualize
as a contour. Instead of gridding the data and then using
<aclass="reference internal" href="../api/_as_gen/matplotlib.axes.Axes.contour.html#matplotlib.axes.Axes.contour" title="matplotlib.axes.Axes.contour"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">contour</span></code></a>, we can use a triangulation algorithm and fill the
triangles.</p>
<divclass="sphx-glr-thumbnails"><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.tricontour."><imgalt="tricontour(x, y, z)" src="../_images/sphx_glr_tricontour_thumb.png" />
<p><aclass="reference internal" href="unstructured/tricontour.html#sphx-glr-plot-types-unstructured-tricontour-py"><spanclass="std std-ref">tricontour(x, y, z)</span></a></p>
<divclass="sphx-glr-thumbnail-title">tricontour(x, y, z)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.tricontourf."><imgalt="tricontourf(x, y, z)" src="../_images/sphx_glr_tricontourf_thumb.png" />
<p><aclass="reference internal" href="unstructured/tricontourf.html#sphx-glr-plot-types-unstructured-tricontourf-py"><spanclass="std std-ref">tricontourf(x, y, z)</span></a></p>
<divclass="sphx-glr-thumbnail-title">tricontourf(x, y, z)</div>
</div><divclass="sphx-glr-thumbcontainer" tooltip="See ~matplotlib.axes.Axes.tripcolor."><imgalt="tripcolor(x, y, z)" src="../_images/sphx_glr_tripcolor_thumb.png" />
<p><aclass="reference internal" href="unstructured/tripcolor.html#sphx-glr-plot-types-unstructured-tripcolor-py"><spanclass="std std-ref">tripcolor(x, y, z)</span></a></p>
<divclass="sphx-glr-thumbnail-title">tripcolor(x, y, z)</div>