galpy.potential.plotSurfaceDensities¶
- 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)[source]¶
NAME:
plotSurfaceDensities
PURPOSE:
plot the surface density a set of potentials
INPUT:
Pot - Potential or list of Potential instances
xmin= minimum x (can be Quantity)
xmax= maximum x (can be Quantity)
nxs= grid in x
ymin= minimum y (can be Quantity)
ymax= maximum y (can be Quantity)
nys= grid in y
z= (inf) height between which to integrate the density (from -z to z; can be a Quantity)
t= (0.) time to use to evaluate potential
ncontours= number of contours
justcontours= (False) if True, just plot contours
savefilename= save to or restore from this savefile (pickle)
log= if True, plot the log density
OUTPUT:
plot to output device
HISTORY:
2020-08-19 - Written - Bovy (UofT)