title: matplotlib, step by step animation
body: <p>It's a pretty basic question on matplotlib, but I cannot figure out how to do it :</p>
  
  <p>I want to plot multiple figures and use the arrow in the plot window to move from one to another. </p>
  
  <p>for the time being I just know how to create mutiple plots and plot them in different windows like this :</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  fig = plt.figure()
  plt.figure(1)
  n= plt.bar([1,2,3,4],[1,2,3,4])
  plt.figure(2)
  n= plt.bar([1,2,3,4],[-1,-2,-3,-4])
  plt.show() 
  </code></pre>
  
  <p>or having multiple figures on the same window using subplot.</p>
  
  <p>How can I have mutliple plots on the same window and move from one to the next one with the arrows ? </p>
  
  <p>Thanks in advance.</p>