Discussion:
[Matplotlib-users] Newbie Q re: Lorenz attractor
Prahas David Nafissian
2015-03-08 21:31:49 UTC
Permalink
Hi,

I want to create an animation of the Lorenz attractor,
plotting each new point as it is generated by the
equations. So we see the graph "being drawn"
over time.

Also, as it is being drawn, I want to be able to
rotate the screen in 3 dimensions.

Will MatPlot do this on a Mac (10.8.5)?

Thanks!

PS -- here is code using MatPlot to create the "full" Lorenz:

http://matplotlib.org/examples/mplot3d/lorenz_attractor.html
Amit Saha
2015-03-09 00:59:09 UTC
Permalink
On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian
Post by Prahas David Nafissian
Hi,
I want to create an animation of the Lorenz attractor,
plotting each new point as it is generated by the
equations. So we see the graph "being drawn"
over time.
You will very likely need to use the animation API for this. I
recently tried to demonstrate the Henon function in a fashion that it
appears I am drawing it over time:


You can see the code linked from there:
https://github.com/amitsaha/playground/blob/master/recipes/henon_animation.py

That might give you a starting point of what you are trying to do.
Post by Prahas David Nafissian
Also, as it is being drawn, I want to be able to
rotate the screen in 3 dimensions.
Sorry, nothing much I can add here.

Best,
Amit.
--
http://echorand.me
Benjamin Root
2015-03-09 02:14:54 UTC
Permalink
Yes, absolutely it will work... so long as you do not use blitting.
Blitting for mplot3d is pretty much useless anyway (I think draws of the
axes occur anyway regardless of the blit mode), but it is also broken for
the macosx backend, anyway.

Cheers!
Ben Root
Post by Amit Saha
On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian
Post by Prahas David Nafissian
Hi,
I want to create an animation of the Lorenz attractor,
plotting each new point as it is generated by the
equations. So we see the graph "being drawn"
over time.
You will very likely need to use the animation API for this. I
recently tried to demonstrate the Henon function in a fashion that it
http://youtu.be/76ll818RlpQ
https://github.com/amitsaha/playground/blob/master/recipes/henon_animation.py
That might give you a starting point of what you are trying to do.
Post by Prahas David Nafissian
Also, as it is being drawn, I want to be able to
rotate the screen in 3 dimensions.
Sorry, nothing much I can add here.
Best,
Amit.
--
http://echorand.me
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Prahas David Nafissian
2015-03-09 13:30:22 UTC
Permalink
Dear Ben, Amit, and Ryan,

Thanks so much for your input! Looking forward to
finding the time to give it a go!

Best,

--Prahas
Yes, absolutely it will work... so long as you do not use blitting. Blitting
for mplot3d is pretty much useless anyway (I think draws of the axes occur
anyway regardless of the blit mode), but it is also broken for the macosx
backend, anyway.
Cheers!
Ben Root
Post by Amit Saha
On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian
Post by Prahas David Nafissian
Hi,
I want to create an animation of the Lorenz attractor,
plotting each new point as it is generated by the
equations. So we see the graph "being drawn"
over time.
You will very likely need to use the animation API for this. I
recently tried to demonstrate the Henon function in a fashion that it
http://youtu.be/76ll818RlpQ
https://github.com/amitsaha/playground/blob/master/recipes/henon_animation.py
That might give you a starting point of what you are trying to do.
Post by Prahas David Nafissian
Also, as it is being drawn, I want to be able to
rotate the screen in 3 dimensions.
Sorry, nothing much I can add here.
Best,
Amit.
--
http://echorand.me
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Matplotlib-users mailing list
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Loading...