galpy.potential.Potential.plot

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, xrange=None, yrange=None, justcontours=False, ncontours=21, savefilename=None)

NAME:

plot

PURPOSE:

plot the potential

INPUT:

t= time tp plot potential at

rmin= minimum R at which to calculate

rmax= maximum R

nrs= grid in R

zmin= minimum z

zmax= maximum z

nzs= grid in z

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

ncontours - number of contours

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.

OUTPUT:

plot to output device

HISTORY:

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

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