galpy.potential.Potential.plotDensity

Potential.plotDensity(t=0.0, rmin=0.0, rmax=1.5, nrs=21, zmin=-0.5, zmax=0.5, nzs=21, phi=None, xy=False, ncontours=21, savefilename=None, aspect=None, log=False, justcontours=False, **kwargs)[source]

Plot the density of this potential.

Parameters:
  • t (float, optional) – Time to plot potential at.

  • rmin (float or Quantity, optional) – Minimum R. If xy is True, this is xmin.

  • rmax (float or Quantity, optional) – Maximum R. If xy is True, this is ymax.

  • nrs (int, optional) – Grid in R.

  • zmin (float or Quantity, optional) – Minimum z. If xy is True, this is ymin.

  • zmax (float or Quantity, optional) – Maximum z. If xy is True, this is ymax.

  • nzs (int, optional) – Grid in z.

  • phi (float, optional) – Azimuth to use for non-axisymmetric potentials.

  • xy (bool, optional) – If True, plot the density in X-Y.

  • ncontours (int, optional) – Number of contours.

  • justcontours (bool, optional) – If True, just plot contours.

  • savefilename (str, optional) – Save to or restore from this savefile (pickle).

  • log (bool, optional) – If True, plot the log density.

Return type:

None

Notes

  • 2014-01-05 - Written - Bovy (IAS)