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]¶
NAME:
plotSurfaceDensity
PURPOSE:
plot the surface density of this potential
INPUT:
t= time to plot potential at
z= (inf) height between which to integrate the density (from -z to z; can be a Quantity)
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
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)