<divclass="bd-toc-item navbar-nav"><ulclass="current nav bd-sidenav">
<liclass="toctree-l1 current active has-children"><aclass="reference internal" href="index.html">Pairwise data</a><detailsopen="open"><summary><spanclass="toctree-toggle" role="presentation"><iclass="fa-solid fa-chevron-down"></i></span></summary><ulclass="current">
<spanid="sphx-glr-plot-types-basic-stairs-py"></span><h1>stairs(values)<aclass="headerlink" href="#stairs-values" title="Link to this heading">#</a></h1>
<p>Draw a stepwise constant function as a line or a filled plot.</p>
<p>See <aclass="reference internal" href="../../api/_as_gen/matplotlib.axes.Axes.stairs.html#matplotlib.axes.Axes.stairs" title="matplotlib.axes.Axes.stairs"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">stairs</span></code></a> when plotting <spanclass="math notranslate nohighlight">\(y\)</span> between
<spanclass="math notranslate nohighlight">\((x_i, x_{i+1})\)</span>. For plotting <spanclass="math notranslate nohighlight">\(y\)</span> at <spanclass="math notranslate nohighlight">\(x\)</span>, see