galpy.orbit.Orbit.plot¶
- Orbit.plot(*args, **kwargs)[source]¶
Plot a previously calculated orbit.
- Parameters:
d1 (str or callable, optional) – First dimension to plot. Can be a string (‘x’, ‘y’, ‘R’, ‘vR’, ‘vT’, ‘z’, ‘vz’, …), an expression like ‘R*vR’, or a user-defined function of time (e.g., lambda t: o.R(t) for R). Default is determined by the number of dimensions in the orbit.
d2 (str or callable, optional) – Second 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.plot.
**kwargs (optional) – Additional keyword arguments to pass to galpy.util.plot.plot.
- Returns:
A list of matplotlib.lines.Line2D 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)
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 - Edited for multiple Orbits - Bovy (UofT)