Re: [Matplotlib-users] Comet

2010-02-06 Thread David Arnold
Goyo, Sweet little function. Thanks. I still feel that a comet routine should be added to matplotlib for the reasons I've delineated. D. On Feb 6, 2010, at 1:38 PM, Goyo wrote: > Hi David, > > El sáb, 06-02-2010 a las 10:21 -0800, David Arnold escribió: >> Hi Eric, >> >> Matlab has two comm

Re: [Matplotlib-users] Comet

2010-02-06 Thread Goyo
Hi David, El sáb, 06-02-2010 a las 10:21 -0800, David Arnold escribió: > Hi Eric, > > Matlab has two commands, comet and comet3, that animate the path. They are > used as in the following Matlab code: > > t=linspace(0,2*pi,2000); > x=-sin(t); > y=cos(t); > comet(x,y) You can just write the fun

Re: [Matplotlib-users] Comet

2010-02-06 Thread David Arnold
Hi Eric, Matlab has two commands, comet and comet3, that animate the path. They are used as in the following Matlab code: t=linspace(0,2*pi,2000); x=-sin(t); y=cos(t); comet(x,y) What then happens is the path is drawn "live", as in my python code below. This is especially useful when teaching

Re: [Matplotlib-users] Comet

2010-02-06 Thread Eric Firing
David Arnold wrote: > All, > > I am still wondering why there is no comet command in matplotlib. > > I was successful with the following: > > import matplotlib.pyplot as plt > import numpy as np > > len=200 > t=np.linspace(0,2*np.pi,len) > x=np.cos(t) > y=np.sin(t) > xd=[x[0]] > yd=[y[0]] > l,

[Matplotlib-users] Comet

2010-02-05 Thread David Arnold
All, I am still wondering why there is no comet command in matplotlib. I was successful with the following: import matplotlib.pyplot as plt import numpy as np len=200 t=np.linspace(0,2*np.pi,len) x=np.cos(t) y=np.sin(t) xd=[x[0]] yd=[y[0]] l,=plt.plot(xd,yd) plt.axis([-1,1,-1,1]) for i in np.

[Matplotlib-users] Comet

2009-12-07 Thread David Arnold
All, Is there anything resembling Matlab's comet command? D. -- Join us December 9, 2009 for the Red Hat Virtual Experience, a free event focused on virtualization and cloud computing. Attend in-depth sessions from your

[Matplotlib-users] Comet

2008-08-14 Thread David Arnold
All, Does anyone have any code emulating Matlab's comet command? D. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes