At the end of some data processing in MATLAB, I want to create a graph that shows the colored lines of the timeline for a series of data. I have several processes, each of which goes through similar steps, and also starts and stops and differs at different times. Ideally, it would look something like this (forgive ASCII art):
| ### *** $$$$$$$$$$ Process 1
| ### *** $$$$$$$ Process 2
| ### $$$$$ Process 3
| ******* $$$$$$ Process 4
+ ------------------------------------------
Time
Where # * and $ stand for solid adjacent blocks of different colors (one color at each step goes through processes, note that some are optional).
Labels may be in another place, but next to each line is good.
I hacked the solution using rectangle and text , but it looks like it could be an existing type of chart inside MATLAB that I haven't found yet. Do you know about this?
matlab graphics
Alex feinman
source share