Function generate_timeline

Generate a timeline plot with intervals.

Draws horizontal timeline in the current axes. The name of each track appears as a label on the y-axis. Each element of the starts and ends cell arrays is itself an array, so each track can start and stop either once or many times.

Credit: Kevin Bartlett (, 2012


adjacent timelines the specified fraction of the line widths apart.