title: Activate a specific figure when returning from a nested function
body: <p>I have a plotting function inside <strong><code>imshow()</code></strong> command.</p>
  
  <p>The plot and the image should be in separate figures.</p>
  
  <p>At the return from the inside function the current figure is of the plot thus <code>imshow()</code> puts the image onto the same figure of the plot and kills the plot.</p>
  
  <p><strong>What can be done</strong> to make <code>imshow()</code> open or get to an existing its own figure, while keeping such manner of nested function calling?</p>