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 wrote: > On Mon, Nov 2, 2009 at 10:52 PM, David Sanders > 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]) > > > >

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 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) >     points.s