title: Add legend below plot in plotyy
body: <p><strong>Problem</strong></p>
  
  <p>I am plotting a graph with a legend but the legend keeps on appearing above the lines of the graph.
  How can I get the legend to be below the graph, as for example you can choose in Excel ?</p>
  
  <p><strong>Code</strong></p>
  
  <p>I am using the following code:</p>
  
  <pre><code>h=figure
  hold on
  yyaxis left
  l1=plot(summary(:,1),summary(:,2))
  l2=plot(summary(:,1),summary(:,3))
  hYLabel=ylabel('US$') 
  
  yyaxis right
  r1=plot(summary(:,1),(summary(:,8)))
  r2=plot(summary(:,1),summary(:,15))
  hYLabel=ylabel('Test')
  hTitle=title('Test);
  hXLabel = xlabel('Test');
  hLegend=legend([l1,l2,r1,r2], 'Value1', 'Value2', 'Value3', 'Value4');
  set([gca,hTitle,hXLabel,hYLabel,hLegend] , 'FontName'   , 'Helvetica','FontSize', 8) 
  set(hTitle,'FontSize', 11) 
  set(gca,'LineWidth',1.0)
  
  
  set(l1, 'LineWidth',1.5,'LineStyle','-')
  set(l2, 'LineWidth',1.5,'LineStyle','-.')
  set(r1, 'LineWidth',1.5,'LineStyle','-')
  set(r2, 'LineWidth',1.5,'LineStyle','-.')
  hold off
  </code></pre>