autogalaxy.plot.subplot_galaxy_mass_profiles#
- subplot_galaxy_mass_profiles(galaxy, grid, convergence=False, potential=False, deflections_y=False, deflections_x=False, output_path=None, output_format=None, colormap='default', use_log10=False)#
Create subplots showing lensing quantities for every mass profile in a galaxy.
One figure is produced per requested quantity, each containing one panel per
MassProfileattached to galaxy. Only the quantities whose corresponding flag isTrueare plotted; if none are requested, or if the galaxy has no mass profiles, the function returns without producing output.- Parameters:
galaxy (Galaxy) – The galaxy whose mass profiles are to be plotted.
grid (aa.type.Grid2DLike) – The grid on which lensing quantities are evaluated.
convergence (bool) – Plot the convergence map of each mass profile.
potential (bool) – Plot the gravitational potential map of each mass profile.
deflections_y (bool) – Plot the y-component of the deflection-angle map.
deflections_x (bool) – Plot the x-component of the deflection-angle map.
output_path (str or None) – Directory in which to save figures.
None→plt.show().output_format (str) – File format, e.g.
"png".colormap (str) – Matplotlib colormap name, or
"default".use_log10 (bool) – Apply a log₁₀ stretch to the plotted values.