galpy.potential.Potential.plotDensity¶
-
Potential.
plotDensity
(rmin=0.0, rmax=1.5, nrs=21, zmin=-0.5, zmax=0.5, nzs=21, phi=None, ncontours=21, savefilename=None, aspect=None, log=False, justcontours=False)¶ NAME:
plotDensityPURPOSE:
plot the density of this potentialINPUT:
rmin= minimum R (can be Quantity)
rmax= maximum R (can be Quantity)
nrs= grid in R
zmin= minimum z (can be Quantity)
zmax= maximum z (can be Quantity)
nzs= grid in z
phi= (None) azimuth to use for non-axisymmetric potentials
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 deviceHISTORY:
2014-01-05 - Written - Bovy (IAS)