Python matplotlib. Trying to plot binary signal, getting interpolation
<p>Hey probably a simple question, but cant find the answer to this. I am monitoring a series of bits with a timestamp. I can plot the state of them just fine, but in the plots there are a skewed line between 0->1 and 1->0, where there should just be a straight line at the time they switch. How to avoid this skewed line? It makes it look like i have values in between when i dont. </p>

<p><a href="https://i.stack.imgur.com/xJNc8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xJNc8.png" alt="enter image description here"></a></p>

<p>EDIT: As pointed out below, using step instead of plot solves the problem. Thanks:)</p>