Plotting Release on change data

Plotting Release on change data
Hello Matplotlib users,

I only just discovered Matplotlib and I’m having great fun with it. Wonderful package. Thank you to all contributors and maintainers.

I have an application where the data that I want to plot is only released when it changes. So when this time tagged data is plotted it should be “flat” until the next data value that the application receives at which point the line should go instantaneously vertical to the new y-value, and then go horizontal until it changes again. Some graphics packages that I’ve used can handle this type of data automatically. I haven’t found anything in the documentation or examples that shows this kind of feature in Matplotlib. Has anyone implemented a similar type of data handling application or is there something I’ve missed in Matplotlib? Any help or direction to this newbie would be very appreciated.