Newbie Q re: Lorenz attractor

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

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:

That might give you a starting point of what you are trying to do.

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.

···

On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian <prahas.music@...287...> wrote:

--

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

···

On Sun, Mar 8, 2015 at 8:59 PM, Amit Saha <amitsaha.in@…287…> wrote:

On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian

<prahas.music@…287…> wrote:

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:

https://www.youtube.com/watch?v=76ll818RlpQ

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.

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

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Dear Ben, Amit, and Ryan,

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

Best,

--Prahas

···

On Sun, Mar 8, 2015 at 7:14 PM, Benjamin Root <ben.root@...1304...> wrote:

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

On Sun, Mar 8, 2015 at 8:59 PM, Amit Saha <amitsaha.in@...287...> wrote:

On Mon, Mar 9, 2015 at 7:31 AM, Prahas David Nafissian >> <prahas.music@...287...> wrote:
> 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:
https://www.youtube.com/watch?v=76ll818RlpQ

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.

>
> 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
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options