plot_enclosed_mass
- deprojected_sersic_models.plot.plot_enclosed_mass(sersic_profs, r=array([0., 1., 2., 3., 4., 5.]), rlim=None, rlog=False, ylog=False, fileout=None, ax=None)[source]
Function to show enclosed mass profile(s) for the Sersic mass distribution(s).
- Parameters:
sersic_profs (array_like or
DeprojSersicModel
instance or Sersic profile table dictionary.) – Distributions to plot. Can be a list ofDeprojSersicModel
instances, or a list of Sersic profile table dictionaries, or a single instance of either.r (array_like, optional) – Radii over which to show profile. Ignored if sersic_profs contains tables, in favor of the table radii
r
. Default: np.arange(0., 6., 1.)rlim (array_like or None, optional) – If set, spefcify r plot bounds. Default: None (default bounds)
rlog (bool, optional) – Option to plot log of radius instead of linear. Default: False
ylog (bool, optional) – Option to plot log of profile instead of linear. Default: False
fileout (str or None, optional) – Filename for saving file. If set to
None
, figure is returned to display. Default: Noneax (matplotlib Axes instance or None, optional) – Target plot axis. If not set, assumes only this panel is to be plot and displayed, and a new axis is created. Default: None