I have a data sample which looks like this:
a 10:15:22 10:15:30 OK
b 10:15:23 10:15:28 OK
c 10:16:00 10:17:10 FAILED
b 10:16:30 10:16:50 OK
What I want is to plot the above data in the following way:
captions ^
|
c | *------*
b | *---* *--*
a | *--*
|___________________
time >
With the color of lines depending on the OK/FAILED status of the data point. Labels (a/b/c/...) may or may not repeat.
As I’ve gathered from documentation for gnuplot and matplotlib, this type of a plot should be easier to do in the latter as it’s not a standard plot and would require some preprocessing.
The question is:
- Is there a standard way to do plots like this in any of the tools?
- If not, how should I go about plotting this data (pointers to relevant tools/documentation/functions/examples which do something-kinda-like the thing described here)?
Updated: Now includes handling the data sample and uses mpl dates functionality.