2D Static Orbits

Learn how to plot 2D static orbits.

We'll cover the following...

You will need several libraries to help plot these orbits:

import numpy as np
from PyAstronomy import pyasl
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import mpl_toolkits.mplot3d.axes3d as p3

The beauty of using a third-party library (that has been properly vetted) is that the library can handle the hard work, and you only need one line to create the elliptical orbit object KeplerEllipse. you will start with a basic ellipse:

  • semi-major axis of 1.0 units
  • a time period of 1.0 units
  • an eccentricity of 0.50
  • an inclination of 10 degrees
  • everything else 0.

You will also use Numpy to create time intervals to ...