- galpy.potential.plotSurfaceDensities(Pot, xmin=-1.5, xmax=1.5, nxs=21, ymin=-1.5, ymax=1.5, nys=21, z=inf, t=0.0, ncontours=21, savefilename=None, aspect=None, log=False, justcontours=False, **kwargs)¶
Plot the surface density of a set of potentials.
Pot (Potential or list of Potential instances) – Potential(s) for which to plot the surface density.
xmin (float or Quantity) – Minimum x value. Default is -1.5.
xmax (float or Quantity) – Maximum x value. Default is 1.5.
nxs (int) – Number of grid points in x.
ymin (float or Quantity) – Minimum y value. Default is -1.5.
ymax (float or Quantity) – Maximum y value. Default is 1.5.
nys (int) – Number of grid points in y.
z (float or Quantity, optional) – Height between which to integrate the density (from -z to z). Default is numpy.inf.
t (float, optional) – Time to use to evaluate potential. Default is 0.0.
ncontours (int, optional) – Number of contours. Default is 21.
justcontours (bool, optional) – If True, just plot contours. Default is False.
aspect (float, optional) – Aspect ratio of the plot. Default is None.
savefilename (str, optional) – Save to or restore from this savefile (pickle). Default is None.
log (bool, optional) – If True, plot the log density. Default is False.
**kwargs (dict, optional) – Additional keyword arguments to pass to plot.dens2d.
Plot to output device.
- Return type:
2020-08-19 - Written - Bovy (UofT)