title: Gnuplot: Plot stepwise discontinuities in a cumulative distriubtion
body: <p>When I plot a cumulative distribution with gnuplot, it interpolates between datapoints; this is seen in the purple curve. How can I plot my data as a stepwise function like the black curve? Something similar to the <a href="https://matplotlib.org/stable/gallery/lines_bars_and_markers/step_demo.html#sphx-glr-gallery-lines-bars-and-markers-step-demo-py" rel="nofollow noreferrer">step method in matplotlib</a>.</p>
  <p><a href="https://i.stack.imgur.com/6EPwC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6EPwC.png" alt="enter image description here" /></a></p>
  <h2>Source data</h2>
  <pre><code>1,1,0
  1,2,0
  1,3,0
  1,4,2
  1,5,1
  1,6,3
  1,7,3
  1,8,1
  1,9,3
  1,10,8
  1,11,1
  1,12,0
  1,13,3
  </code></pre>
  <h2>Gnuplot source</h2>
  <pre><code>set terminal pngcairo font &quot;,14&quot;
  set output &quot;cumulative.png&quot;
  #set terminal qt font &quot;,14&quot;
  set title &quot;Cumulative count&quot; font &quot;,16&quot;
  set xlabel &quot;episode&quot;
  set ylabel &quot;cumulative count&quot;
  set xtics 1
  set key bottom right
  set grid
  unset border
  
  set datafile separator comma
  plot &quot;season-01-count.csv&quot; u 2:($3) smooth cumulative title &quot;cumulative count&quot;
  </code></pre>