Slide 10
Slide 10 text
In [13]: from poliastro.plotting import OrbitPlotter
from poliastro.bodies import Mercury, Venus, Earth, Mars
frame = OrbitPlotter(num_points=300)
# Florence close approach
frame.plot(Orbit.from_body_ephem(Earth, epoch=Time("2017-09-01 12:05:50", scale="td
b")), label=Earth)
for planet in Mercury, Venus, Mars:
frame.plot(Orbit.from_body_ephem(planet), label=planet)
frame.plot(halley_1835, label='Halley', color='#666666')
frame.plot(florence, label='Florence', color='#000000')
plt.title("Inner solar system + Florence + Halley")
plt.xlim(-.3e9, .3e9)
plt.ylim(-.3e9, .3e9)
Out[13]: (-300000000.0, 300000000.0)