title: Gnuplot: How to plot a task scheduling graphic
body: <p>I'm a completely newbie with Gnuplot, I just read this basic tutorial: <a href="http://people.duke.edu/%7Ehpgavin/gnuplot.html" rel="nofollow noreferrer">http://people.duke.edu/~hpgavin/gnuplot.html</a></p>
  <p>I want to plot this data:</p>
  <pre><code>Processor1 t4 2 7 t3 7 12 t2 12 17
  Processor2 t5 0 9 t1 10 13
  </code></pre>
  <p>And the resulting plot should be something like this image:</p>
  <p><a href="https://i.stack.imgur.com/WkWaM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WkWaM.png" alt="enter image description here" /></a></p>
  <p>I searched through the web but I didn't find any plot like this, the most similar that I found were stacked bars, but they are not what I need.</p>
  <p>Someone knows how to get close to this plot using Gnuplot (could be other plotting program, I choose Gnuplot because it's a well known tool for this purpose).</p>
  <p>@edit 1</p>
  <p>The image above is from <a href="http://rtime.felk.cvut.cz/scheduling-toolbox/manual/algorithms-scheduling.php" rel="nofollow noreferrer">http://rtime.felk.cvut.cz/scheduling-toolbox/manual/algorithms-scheduling.php</a></p>
  <p>@edit 2</p>
  <p>I'd like to thank Michael O. for generate a plotting for my data, even being a manual plotting it was amazing.</p>
  <p>Actually I gave up of trying to plot this using a generic plotting program, like gnuplot. I started using the matlab toolbox that generated the image above: rtime.felk.cvut.cz/scheduling-toolbox</p>
  <p>It was fairly simple to plot this using this toolbox, I'm going to write here the script I used to plot the graphic referring to the data above.</p>
  <p>Script: schedulingSample.m</p>
  <pre><code>addpath(path,'/home/carloshmm/Matlab/toolbox/TORSCHE/scheduling/');
  t1 = task('t1', 3, 10, inf, inf, 1, 2);
  t2 = task('t2', 5, 12, inf, inf, 1, 1);
  t3 = task('t3', 5, 7, inf, inf, 1, 1);
  t4 = task('t4', 5, 2, inf, inf, 1, 1);
  t5 = task('t5', 9, 0, inf, inf, 1, 2);
  T = [t1 t2 t3 t4 t5];
  add_schedule(T, 'Task Scheduling Graphic', T.ReleaseTime, T.ProcTime, T.Processor);
  plot(T);
  waitforbuttonpress;
  </code></pre>
  <p>Resulting plot:</p>
  <p><a href="https://i.stack.imgur.com/tsjNh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tsjNh.png" alt="enter image description here" /></a></p>