autolens.plot.subplot_fit_imaging#
- subplot_fit_imaging(fit, output_path=None, output_format=None, colormap=None, plane_index=None, image_plane_lines=None, image_plane_line_colors=None, source_plane_lines=None, source_plane_line_colors=None, title_prefix=None)#
Produce a 12-panel subplot summarising an imaging fit.
Arranges the following panels in a 3 × 4 grid:
Data
Model image
Signal-to-noise map
Source plane image (max zoom)
Lens-light model image
Lens-light-subtracted image (source scale)
Source model image (source scale)
Source plane image (mid zoom — 2× wider than max zoom, square, shrunk uniformly so all edges stay inside the no-zoom extent)
Normalised residual map (symmetric scale)
Normalised residual map clipped to ± 1 σ
Chi-squared map
Source plane image (full extent)
For single-plane tracers the function delegates to
subplot_fit_x1_plane, which uses a simpler 2 × 3 layout.- Parameters:
fit (FitImaging) – The imaging fit to visualise.
output_path (
Optional[str]) – Directory in which to save the figure. IfNonethe figure is not saved to disk.output_format (
str) – Image format passed tosave_figure(e.g."png","pdf").colormap (
Optional[str]) – Matplotlib colormap name applied to all image panels.plane_index (
Optional[int]) – Index of the source plane to use for the source-scale panels. Defaults to the final plane in the tracer.