[SciPy-user] Simple 2D animations?

Gary Ruben gruben at bigpond.net.au
Fri Mar 18 02:31:18 CST 2005


Hi Petr,

Take a look at Visual Python at http://vpython.org
It is a 3-D package and comes with examples of both orbiting masses and 
a lorentz attractor in 3D.

Gary R.

Petr Kucera wrote:
> Hello Scipy users!
> 
> I'm new here and actually I'm looking for a tool to plot simple 2D animations.  
> I want for example do a simple 2D animation showing earth going around the 
> sun. Another example is to plot x-y animation of lorenz attractor. I would 
> like to have a point which will move with time and possible draw the trail.
> 
> To give a better idea, here is a simple script:
> ============================
> import Numeric
> t = 0
> i = 0
> while 1:
>     t=i/100.0
>     x=Numeric.sin(t)
>     y=Numeric.sin(t+0.5)
>     print x, y
>     i+=1
> ============================
> 
> I would like to plot just last (x,y) point. I should get a simple animation, 
> where the (x,y) will move in a graph.
> 
> Is SciPy the right tool for me?
> 
> Many thanks for any hint!
> Peter
> ____________________________________________________________
> http://www.seznam.cz - e-mailová schránka 1000 MB
> 
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-user
> 



More information about the SciPy-user mailing list