galpy.potential.Potential.plotSurfaceDensity

Potential.plotSurfaceDensity(t=0.0, z=inf, xmin=0.0, xmax=1.5, nxs=21, ymin=-0.5, ymax=0.5, nys=21, ncontours=21, savefilename=None, aspect=None, log=False, justcontours=False, **kwargs)[source]

Plot the surface density of this potential.

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

  • z (float or Quantity, optional) – Height between which to integrate the density (from -z to z).

  • xmin (float or Quantity, optional) – Minimum x.

  • xmax (float or Quantity, optional) – Maximum x.

  • nxs (int, optional) – Grid in x.

  • ymin (float or Quantity, optional) – Minimum y.

  • ymax (float or Quantity, optional) – Maximum y.

  • nys (int, optional) – Grid in 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.

  • **kwargs (dict, optional) – Any additional keyword arguments are passed to galpy.util.plot.dens2d.

Return type:

None

Notes

  • 2020-08-19 - Written - Bovy (UofT)