galpy.orbit.Orbit.plot3d

Orbit.plot3d(*args, **kwargs)[source]

Plot 3D aspects of an Orbit.

Parameters:
  • d1 (str or callable) – First dimension to plot (‘x’, ‘y’, ‘R’, ‘vR’, ‘vT’, ‘z’, ‘vz’, …); can also be an expression, like ‘R*vR’, or a user-defined function of time (e.g., lambda t: o.R(t) for R).

  • d2 (str or callable) – Second dimension to plot. Same format as d1.

  • d3 (str or callable) – Third dimension to plot. Same format as d1.

  • ro (float or Quantity, optional) – Physical scale in kpc for distances to use to convert. Default is the object-wide default.

  • vo (float or Quantity, optional) – Physical scale for velocities in km/s to use to convert. Default is the object-wide default.

  • use_physical (bool, optional) – Use to override object-wide default for using a physical scale for output.

  • *args (optional) – Additional arguments to pass to galpy.util.plot.plot3d.

  • **kwargs (optional) – Additional keyword arguments to pass to galpy.util.plot.plot3d.

Returns:

A list of matplotlib.lines.Line3D objects representing the plotted data.

Return type:

list

Notes

  • 2010-07-26 - Written - Bovy (NYU)

  • 2010-09-22 - Adapted to more general framework - Bovy (NYU)

  • 2010-01-08 - Adapted to 3D - Bovy (NYU)

  • 2013-11-29 - Added ra,dec kwargs and other derived quantities - Bovy (IAS)

  • 2014-06-11 - Support for plotting in physical coordinates - Bovy (IAS)

  • 2017-11-28 - Allow arbitrary functions of time to be plotted - Bovy (UofT)

  • 2019-04-13 - Adapted for multiple orbits - Bovy (UofT)