title: Matlab: Superimposing a plot on an image in GUIDE
body: <p>Whilst using Matlab's GUIDE, I wish to plot a line onto an image. I managed to achieve this when I was using only one axis inside the GUI. However upon adding another axis the plot no longer overlays the image.</p>
  
  <p>Initially the plot began to plot on the wrong axis and I realized I had forgotten to set the appropriate axis. However once I had selected the image axis for plotting on, the line which is to be plotted, doesn't lie on top of the image anymore, instead it just replaces the image with a graph of the line only.</p>
  
  <p>My code:</p>
  
  <pre><code>imshow(img(k),'Parent',handles.display)
  hold on
  
  x1 = line(k).point1(1);
  y1 = line(k).point1(2);
  x2 = line(k).point2(1);
  y2 = line(k).point2(2);
  plot(handles.display,[x1 x2],[y1 y2],'Color','r','LineWidth', 2)
  
  hold off
  </code></pre>
  
  <p>The code before I added the new axis was identical to above but with the <code>handles.display</code> parameter for the <code>plot()</code>.</p>
  
  <p>Any help would be greatly appreciated, thank you in advance.</p>