How to turn 3D Matplotlib plotting into animated gif?

How to turn 3D Matplotlib plotting into animated gif ?

Should I calculate live rotation for every plotted point
or a flying point of view can be implemented into 3D plot ?

thank you

darius

Ok, the above 3D animated plot already comes with a flying camera
what I need to add is playable timeline over time span from date to date
Just to limit earthquake data for a week, month in Turkey
and watch live how new data on earthquakes/ quakes are live added into 3D plot

I just build Earthquake Prediction System based on Precognition, live analysis of seismographs from the region , magnetograms and more smart inputs to predict coming earthquakes 1 week, 1 month ahead of time.

I was advised to test the following links

https://sphinx-gallery.github.io/stable/auto_mayavi_examples/plot_3d.html

https://matplotlib.org/stable/gallery/mplot3d/index.html