title: matplotlib.animation not working
body: <p>So i've been trying to generate a dynamically updating plot that shows me several data sets as a scatter plot. I have two identically sized lists col1 and col2 containing lists in each position. not all of these lists are equally long but <code>len(col1[i]) = len(col2[i])</code>.</p>
  
  <p>So this is what i've tried so far:</p>
  
  <pre><code>fig = plt.figure()
  ax = fig.add_subplot(1,1,1)    
  def animate(i):
          x=col1[i]
          y=col2[i]
          ax.clear()
          ax.scatter(x, y)
  a = anim.FuncAnimation(fig, animate, frames=200, repeat=False)
  plt.show()
  </code></pre>
  
  <p>When I do <code>scatter(col1[0],col2[0])</code> I see the following:</p>
  
  <p><img src="https://i.stack.imgur.com/XrRut.png" alt="out1"></p>
  
  <p>and this is the first image i want to see, then the corresponding for <code>scatter(col1[1],col2[1])</code> and so on.</p>
  
  <p>And this is what I get every time:</p>
  
  <p><img src="https://i.stack.imgur.com/PdO9F.png" alt="Output"></p>
  
  <p>I notice the program is still running so I suppose the plot might still be updating with the same "image".</p>
  
  <p>Am I missing something in my code?</p>
  
  <p>EDIT: The second image is also what I get when I scatter plot everything together</p>