title: Python - How do I animate my scatterplot?
body: <p>This is my script so far: </p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  import random
  t=0
  r=3.0
  n=0
  A=[]
  for x in range(10):
    for y in range(10):
      A.append([random.uniform(0,1),random.uniform(0,1)])
  for m in range(len(A)):
    plt.plot(A[m][0],A[m][1], "x", color="blue")
  plt.show()
  while n&lt;=100:
    for m in range(len(A)):
      A[m][0]=r*A[m][0]*(1-A[m][0])
      A[m][1]=r*A[m][1]*(1-A[m][1])
    for m in range(len(A)):
      plt.plot(A[m][0],A[m][1], "x", color="blue")
    plt.show()
    n+=1
  </code></pre>
  
  <p>What I want to do now is animate it, so that I don't have to close the plot each time it for python to recalculate an show me the next image. Instead, it should show me a new plot every say 5s. What's the best way for me to do that?</p>