Re: [Matplotlib-users] Problem with simple use of draw() in animations of arrays

2009-11-09 Thread David Sanders
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], ',')

[Matplotlib-users] Problem with simple use of draw() in animations of arrays

2009-11-02 Thread David Sanders
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

Re: [Matplotlib-users] Problem with simple use of draw() in animations of arrays

2009-11-02 Thread Jae-Joon Lee
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)