autogalaxy.plot.subplot_galaxy_light_profiles#

subplot_galaxy_light_profiles(galaxy, grid, output_path=None, output_format=None, colormap='default', use_log10=False, positions=None)#

Create a subplot showing the image of every light profile in a galaxy.

One panel is drawn per LightProfile attached to galaxy. If the galaxy has no light profiles the function returns immediately without producing any output.

Parameters:
  • galaxy (Galaxy) – The galaxy whose light profiles are to be plotted.

  • grid (aa.type.Grid1D2DLike) – The grid on which each light profile image is evaluated.

  • output_path (str or None) – Directory in which to save the figure. Noneplt.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 image values.

  • positions (array-like or None) – Point positions to scatter-plot over each panel.