I’v made a small program which plots data from a CAN-bus log file. Some of the data to plot is logical type on/off values (bit on or off). I have tried to find a way to plot this kind of data with no success.
Basically what I want to do is to draw a horizontal line with relative y co-ordinates and absolute xmin and xmax co-ordinate. Then I could draw a line when a bit is high and have it always in plot area even when zooming etc. Like axhline(…) but with relative y and absolute x co-ordinates. Another way to do this could be using subplots, but I can’t figure out how to use same x-scale on the both plots.