Babaji
Babaji

Reputation: 408

How to animate 3D data in python using Mayavi

I have many 3D arrays containing data of a quantity at every point in space. Therefore,

A10[4][3][6]

gives the value of this quantity at coordinates (4,3,6). This array A10 contains the values at some time t = 10. There are arrays like this for 200 units of time. The value of this quantity changes with time in space. I wish to animate this data.

How can I do this using Mayavi or any other software?

Upvotes: 0

Views: 619

Answers (1)

A. STEFANI
A. STEFANI

Reputation: 6737

You may use Matplotlib animation.FuncAnimation to make 3D animation with Matplotlib.

You will find a 3D animation working example in the official documentation.


You may also keep mayavi as 3D render, in that case you may take a look on mlab_animating on the mayavi official documentation


Note also that your question is near similar to:

Upvotes: 1

Related Questions