title: Flushing all current figures in matplotlib
body: <p>Say I did </p>
  
  <pre><code>figure(1)
  plot(...)
  figure(2)
  plot(...)
  </code></pre>
  
  <p>and I want to create a third figure and show only that one. so that:</p>
  
  <pre><code>figure(1)
  plot(...)
  figure(2)
  plot(...)
  somemagicFuncToFlushFigures()
  figure(3)
  plot(...)
  show()
  </code></pre>
  
  <p>will only show the third figure.
  How do I do that?</p>