title: Matplotlib - How to make line plots jump directly to data point
body: <p>I have a set of data that I am using to make a line plot on matplotlib. Is it possible to make the data directly jump to the data points, instead of having a positive/negative slope?</p>
  <p>Below is an example of the plot.</p>
  <p><a href="https://i.stack.imgur.com/doWomm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/doWomm.png" alt="enter image description here" /></a></p>
  <p>Blue is what is automatically generated with the set of data, and red is what I want it to look like. I plotted this manually with a for loop and with <code>plt.plot</code> with just two coordinates. Is there a quicker way that doesn't involve manually doing it, and a built-in function for this?</p>