title: Matplotlib - Only show one figure
body: <p>So I'm got a few plots that my code generates. I want to save all of them, but I only want to display one. I can do the save part just fine, but getting only one to display is proving a pain. </p>
  
  <p>Been going round in circles with trying to achieve this. The closest I got was to clear all but one of the figures, but they all were displayed when I tried to show just one. Starting to think it's either something very simple I'm overlooking or else it's not possible.</p>
  
  <p>Anyone know how to achieve this?</p>
  
  <p>Edit: Added sample code. Apologies for not doing so originally.</p>
  
  <pre><code>    fig1 = plt.figure(1)
      plt.plot([0, 1, 2, 3, 4], [0, 1, 2, 3, 4], label="Test", color='g')
      plt.plot([0, 1, 2, 3, 4], [0, 1, 4, 9, 16],  label="Other Test",  color='r')
      plt.grid(True)
  
      fig1.savefig('Foo1.png')
  
      fig2 = plt.figure(2)
      plt.plot([0, 1, 2, 3, 4], [0, 5, 1, 9, 2], label="Test 2", color='g')
      plt.plot([0, 1, 2, 3, 4], [0, 10, 50, 0, 10],  label="Other Test 2",  color='r')
      plt.grid(True)
  
      fig2.savefig('Foo2.png')
  
      plt.show()
  </code></pre>