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, source_interpolated=True)#
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)
With
source_interpolated(default) and a Delaunay / kNN source, the mid-zoom panel shows the interpolated reconstruction instead.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.source_interpolated (
bool) – When the source is a Delaunay / kNN pixelization, the right-hand source panels are Source Plane (Max Zoom) as flat triangles, which show the mesh resolution, then “Source Plane (Interpolated)” – the reconstruction the likelihood uses, over the max-zoom extent – in the middle, then Source Plane (No Zoom) bottom right. WhenFalse(or for rectangular / parametric sources) they are max, mid and no zoom. Set byplots.yamlfit: subplot_fit_source_interpolated(defaultTrue).