In [ ]:
import numpy as np
from astropy import units as u
from poliastro.bodies import Earth, Sun
from poliastro.twobody import State
%matplotlib inline
In [ ]:
# Data from Curtis, example 4.3
r = [-6045, -3490, 2500] * u.km
v = [-3.457, 6.618, 2.533] * u.km / u.s
ss = State.from_vectors(Earth, r, v)
In [6]:
from poliastro.plotting import plot
plot(ss)
Out[6]:
In [ ]: