title: Gantt Chart in Matlab
body: <p>Do you know how to plot a Gantt chart in Matlab without using a third-party software? 
  At the end I would love to obtain something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/MSrlv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MSrlv.jpg" alt="enter image description here"></a></p>
  
  <p>What I was able to obtain so far is</p>
  
  <p><a href="https://i.stack.imgur.com/yH1MB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yH1MB.png" alt="enter image description here"></a></p>
  
  <p>using this code:</p>
  
  <pre><code>% Create data for childhood disease cases
  measles = [38556 24472 14556 18060 19549 8122 28541 7880 3283 4135 7953 1884]';
  mumps = [20178 23536 34561 37395 36072 32237 18597 9408 6005 6268 8963 13882]';
  chickenPox = [37140 32169 37533 39103 33244 23269 16737 5411 3435 6052 12825 23332]';
  
  % Create a stacked bar chart using the bar function
  fig = figure;
  bar(1:12, [measles mumps chickenPox], 0.5, 'stack');
  axis([0 13 0 100000]);
  title('Childhood diseases by month');
  xlabel('Month');
  ylabel('Cases (in thousands)');
  legend('Measles', 'Mumps', 'Chicken pox');
  </code></pre>
  
  <p>That is not what I want but, maybe, goes in this direction</p>