On Mon, Nov 2, 2009 at 11:51 PM, Jae-Joon Lee lee.j.j...@gmail.com wrote:
On Mon, Nov 2, 2009 at 10:52 PM, David Sanders dpsand...@gmail.com
wrote:
from pylab import *
ion()
N = 1000
pos = zeros((N,2))
figure(figsize=(8,8))
points, = plot(pos[:,0], pos[:,1], ',')
Hi,
I have a problem with draw() to do simple animations of the contents of
arrays in matplotlib.
I was trying to use the idea in the animations cookbook (
http://www.scipy.org/Cookbook/Matplotlib/Animations)
to animate some random walkers, but found that the animation did not work.
A minimal
On Mon, Nov 2, 2009 at 10:52 PM, David Sanders dpsand...@gmail.com wrote:
from pylab import *
ion()
N = 1000
pos = zeros((N,2))
figure(figsize=(8,8))
points, = plot(pos[:,0], pos[:,1], ',')
axis([-20,20,-20,20])
for t in range(1000):
pos += uniform(-1,1,N*2).reshape(N,2)