title: Is there a limitation in the "Hold on" function of Matlab?
body: <p>we made a code that will call the plot saved as an image.</p>
  
  <p>%This is our Matlab code for the plot</p>
  
  <pre><code>h=figure(2); set(gcf, 'Visible', 'off');
  plot(minD2out,plotAngle,'*r','linewidth',3); 
  xlabel('Depth (mm)')
  ylabel('Left               ANGLE (degrees)               Right')
  axis([0, 3000, -30, 30])
  hold on;
  grid on
  print(h, '-dpng','PS2Plot.png');
  </code></pre>
  
  <p>//This is our C# code for calling the plot saved as an image using Matlab</p>
  
  <pre><code>button12.PerformClick();
              ProcessStartInfo start = new ProcessStartInfo();
              start.FileName = "C:\\Users\\Leno\\Desktop\\PS2 Final\\ThesisPS2FINAL.exe";
              start.WorkingDirectory = "C:\\Users\\Leno\\Desktop\\PS2 Final";
              start.WindowStyle = ProcessWindowStyle.Hidden;
              start.CreateNoWindow = true;
  </code></pre>