title: How can I plot random pixels in real time in Python?
body: <p>I'm almost a beginner in Python even though I did Computer Sciences. </p>
  
  <p>I'd like to do several projects with real-time Python plotting. </p>
  
  <p>My start is to display an image with random pixels constantly changing. 
  I tried Python interactive mode, and loops, but I can't figure it out. </p>
  
  <p>Here is the code to show random pixels : </p>
  
  <pre><code>import matplotlib
  from numpy import random
  
  Z = random.random((50,50))   # Test data
  imshow(Z, cmap=get_cmap("Spectral"), interpolation='nearest')
  fig.show()
  </code></pre>
  
  <p>What would be an easy way to replace all pixels with new random ones each frame ? (Like a TV noise)
  Thanks for help ! </p>