Potential.plot(t=0.0, rmin=0.0, rmax=1.5, nrs=21, zmin=-0.5, zmax=0.5, nzs=21, effective=False, Lz=None, phi=None, xy=False, xrange=None, yrange=None, justcontours=False, levels=None, cntrcolors=None, ncontours=21, savefilename=None)[source]




plot the potential


t= time to plot potential at

rmin= minimum R (can be Quantity) [xmin if xy]

rmax= maximum R (can be Quantity) [ymax if xy]

nrs= grid in R

zmin= minimum z (can be Quantity) [ymin if xy]

zmax= maximum z (can be Quantity) [ymax if xy]

nzs= grid in z

phi= (None) azimuth to use for non-axisymmetric potentials

xy= (False) if True, plot the potential in X-Y

effective= (False) if True, plot the effective potential Phi + Lz^2/2/R^2

Lz= (None) angular momentum to use for the effective potential when effective=True

justcontours= (False) if True, just plot contours

savefilename - save to or restore from this savefile (pickle)

xrange, yrange= can be specified independently from rmin,zmin, etc.

levels= (None) contours to plot

ncontours - number of contours when levels is None

cntrcolors= (None) colors of the contours (single color or array with length ncontours)


plot to output device


2010-07-09 - Written - Bovy (NYU)

2014-04-08 - Added effective= - Bovy (IAS)