autolens.plot.subplot_fit_imaging_of_planes#

subplot_fit_imaging_of_planes(fit, output_path=None, output_format=None, colormap=None, plane_index=None, title_prefix=None)#

Produce a 4-panel subplot for each plane in the tracer.

For every plane (or the single plane specified by plane_index), a 1 × 4 row is saved to its own figure containing:

  • Data

  • Lens-light-subtracted image for that plane

  • Model image contributed by that plane

  • Source-plane image evaluated at that plane

Each figure is saved with the filename subplot_of_plane_<plane_index>.

Parameters:
  • fit (FitImaging) – The imaging fit whose planes are visualised.

  • output_path (Optional[str]) – Directory in which to save the figures. If None the figures are not saved to disk.

  • output_format (str) – Image format passed to save_figure.

  • colormap (Optional[str]) – Matplotlib colormap name applied to all image panels.

  • plane_index (Optional[int]) – If provided, only the subplot for that specific plane is produced. If None (default) a subplot is produced for every plane in the tracer.