SurfaceDensityProfile class

Calculate the surface density profile of a galactic disk.

class galaxy.surfacedensity.SurfaceDensityProfile(gal, snap, radii=None, r_step=0.5, ptype=2, usesql=False)[source]

Calculate the surface density profile of a galaxy at a snapshot. Modified from code supplied by Rixin Li.

plot_xy(figsize=(8, 8), xlim=(0, 60), ylim=(0, 60), pfc='b', ngout=False, fname=None)[source]