Quantcast
Channel: WP快站
Viewing all articles
Browse latest Browse all 233

How do I create a MatPlotLib or similar graph that varies with time?

$
0
0

What I am trying to do is to plot the data from an orbital simulation using Matplotlib; an example of what I am trying to achieve is attached below.Orbital simulation

I have the data of planets as well as the spacecraft in X,Y,Z, time coordinates(or if necessary I can rerun to get it in other coordinate systems) with respect to the Sun.

How can I make a GIF like this?

I tried just using pyplot of x,y, but instead of the moving GIF I only get a flat image.(As expected, because PyPlot can only make static graphs). Any help/pointers to where I can look is greatly appreciated.


Viewing all articles
Browse latest Browse all 233

Trending Articles