title: Displaying multiple images with patches overlayed in the same figure in matlab
body: <p>I have an image I overlay with a patch and I want to be able to display multiple images on the same figure all with different over-layed patches. I tried using the subplot command but it did not work. I defined my axes and parent figure below.</p>
  
  <pre><code>hFig = figure;
  hAx = axes('Parent',hFig);
  hAx2 = axes('Parent',hFig);
  
  fh = figure('units','pixels',...
            'position',[300 300 440 500],...
            'menubar','none',...
            'name','SliderTool',...
            'numbertitle','off',...
            'resize','off');
  
  
  subplot(1,2,1) imshow(image1,'Parent','hAx');
  patch(....,'parent', 'hAx');
  subplot(1,2,2) imshow(image2,'Parent','hAx2');
  patch(....,'parent', 'hAx2');
  </code></pre>
  
  <p>This is the basic idea for what I want to do but for some reason I cannot get it to work. Am I using the handles incorrectly? </p>