autolens.plot.FitImagingPlotter#

class autolens.plot.FitImagingPlotter(fit: ~autolens.imaging.fit_imaging.FitImaging, mat_plot_2d: ~autogalaxy.plot.mat_plot.two_d.MatPlot2D = <autogalaxy.plot.mat_plot.two_d.MatPlot2D object>, visuals_2d: ~autogalaxy.plot.visuals.two_d.Visuals2D = <autogalaxy.plot.visuals.two_d.Visuals2D object>, include_2d: ~autogalaxy.plot.include.two_d.Include2D = <autogalaxy.plot.include.two_d.Include2D object>, residuals_symmetric_cmap: bool = True)[source]#
__init__(fit: ~autolens.imaging.fit_imaging.FitImaging, mat_plot_2d: ~autogalaxy.plot.mat_plot.two_d.MatPlot2D = <autogalaxy.plot.mat_plot.two_d.MatPlot2D object>, visuals_2d: ~autogalaxy.plot.visuals.two_d.Visuals2D = <autogalaxy.plot.visuals.two_d.Visuals2D object>, include_2d: ~autogalaxy.plot.include.two_d.Include2D = <autogalaxy.plot.include.two_d.Include2D object>, residuals_symmetric_cmap: bool = True)[source]#

Plots the attributes of FitImaging objects using the matplotlib method imshow() and many other matplotlib functions which customize the plot’s appearance.

The mat_plot_2d attribute wraps matplotlib function calls to make the figure. By default, the settings passed to every matplotlib function called are those specified in the config/visualize/mat_wrap/*.ini files, but a user can manually input values into MatPlot2d to customize the figure’s appearance.

Overlaid on the figure are visuals, contained in the Visuals2D object. Attributes may be extracted from the FitImaging and plotted via the visuals object, if the corresponding entry is True in the Include2D object or the config/visualize/include.ini file.

Parameters
  • fit – The fit to an imaging dataset the plotter plots.

  • mat_plot_2d – Contains objects which wrap the matplotlib function calls that make the plot.

  • visuals_2d – Contains visuals that can be overlaid on the plot.

  • include_2d – Specifies which attributes of the Array2D are extracted and plotted as visuals.

  • residuals_symmetric_cmap – If true, the residual_map and normalized_residual_map are plotted with a symmetric color map such that abs(vmin) = abs(vmax).

Methods

__init__(fit[, mat_plot_2d, visuals_2d, ...])

Plots the attributes of FitImaging objects using the matplotlib method imshow() and many other matplotlib functions which customize the plot's appearance.

close_subplot_figure()

figures_2d_of_planes([plane_index, ...])

Plots images representing each individual Plane in the fit's Tracer in 2D, which are computed via the plotter's 2D grid object.

get_subplot_figsize(number_subplots)

Get the size of a sub plotter in (total_y_pixels, total_x_pixels), based on the number of subplots that are going to be plotted.

get_visuals_2d()

inversion_plotter_of_plane(plane_index)

Returns an InversionPlotter corresponding to one of the Inversion's in the fit, which is specified via the index of the Plane that inversion was performed on.

open_subplot_figure(number_subplots[, ...])

Setup a figure for plotting an image.

plane_indexes_from(plane_index)

Returns a list of all indexes of the planes in the fit, which is iterated over in figures that plot individual figures of each plane in a tracer.

set_filename(filename)

set_format(format)

set_mat_plot_1d_for_multi_plot(...)

set_mat_plots_for_subplot(is_for_subplot[, ...])

set_title(label)

subplot_of_planes([plane_index])

Plots images representing each individual Plane in the plotter's Tracer in 2D on a subplot, which are computed via the plotter's 2D grid object.

subplot_of_plotters_figure(plotter_list, name)

Attributes

get_1d

get_2d

is_for_subplot

tracer

tracer_plotter

Returns an TracerPlotter corresponding to the Tracer in the FitImaging.