Bodies module

Bodies of the Solar System.

Contains some predefined bodies of the Solar System:

  • Sun (☉)

  • Earth (♁)

  • Moon (☾)

  • Mercury (☿)

  • Venus (♀)

  • Mars (♂)

  • Jupiter (♃)

  • Saturn (♄)

  • Uranus (⛢)

  • Neptune (♆)

  • Pluto (♇)

and a way to define new bodies (Body class).

Data references can be found in constants

class poliastro.bodies.Body
class poliastro.bodies.SolarSystemPlanet
plot(epoch=None, label=None, use_3d=False, interactive=False, plane=<Planes.EARTH_ECLIPTIC: 'Earth mean Ecliptic and Equinox of epoch (J2000.0)'>)

Plots the body orbit.

Parameters
  • epoch (astropy.time.Time, optional) – Epoch of current position.

  • label (str, optional) – Label for the orbit, defaults to empty.

  • use_3d (bool, optional) – Produce a 3D plot, default to False.

  • interactive (bool, optional) – Produce an interactive (rather than static) image of the orbit, default to False. This option requires Plotly properly installed and configured for your environment.