autolens.plot.InversionPlotter

class autolens.plot.InversionPlotter(inversion: autoarray.inversion.inversion.abstract.AbstractInversion, mat_plot_2d: autoarray.plot.mat_wrap.mat_plot.MatPlot2D = <autoarray.plot.mat_wrap.mat_plot.MatPlot2D object>, visuals_2d: autoarray.plot.mat_wrap.visuals.Visuals2D = <autoarray.plot.mat_wrap.visuals.Visuals2D object>, include_2d: autoarray.plot.mat_wrap.include.Include2D = <autoarray.plot.mat_wrap.include.Include2D object>)
__init__(inversion: autoarray.inversion.inversion.abstract.AbstractInversion, mat_plot_2d: autoarray.plot.mat_wrap.mat_plot.MatPlot2D = <autoarray.plot.mat_wrap.mat_plot.MatPlot2D object>, visuals_2d: autoarray.plot.mat_wrap.visuals.Visuals2D = <autoarray.plot.mat_wrap.visuals.Visuals2D object>, include_2d: autoarray.plot.mat_wrap.include.Include2D = <autoarray.plot.mat_wrap.include.Include2D object>)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(inversion, mat_plot_2d, visuals_2d, …) Initialize self.
as_mapper(solution_vector)
close_subplot_figure()
extract_1d(name, value[, include_name]) Extracts an attribute for plotting in a Visuals1D object based on the following criteria:
extract_2d(name, value[, include_name]) Extracts an attribute for plotting in a Visuals2D object based on the following criteria:
figures_2d(reconstructed_image) Plot the model data of an analysis, using the Fitter class object.
figures_2d_of_mapper(mapper_index, …) Plot the model data of an analysis, using the Fitter class 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.
mapper_plotter_from(mapper_index)
open_subplot_figure(number_subplots, …) Setup a figure for plotting an image.
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_mapper(mapper_index, auto_filename)
subplot_of_plotters_figure(plotter_list, name)

Attributes

is_for_subplot
visuals_data_with_include_2d Extracts from a Mapper attributes that can be plotted for figures in its data-plane (e.g.
visuals_data_with_include_2d

Extracts from a Mapper attributes that can be plotted for figures in its data-plane (e.g. the reconstructed data) and return them in a Visuals object.

Only attributes with True entries in the Include object are extracted for plotting.

From a Mapper the following attributes can be extracted for plotting in the data-plane:

  • origin: the (y,x) origin of the Array2D’s coordinate system in the data plane.
  • mask : the Mask defined in the data-plane containing the data that is used by the Mapper.
  • mapper_data_pixelization_grid: the Mapper’s pixelization grid in the data-plane.
  • mapper_border_grid: the border of the Mapper’s full grid in the data-plane.
Parameters:mapper (Mapper) – The mapper whose data-plane attributes are extracted for plotting.
Returns:The collection of attributes that can be plotted by a Plotter2D object.
Return type:Visuals2D
figures_2d(reconstructed_image: bool = False)

Plot the model data of an analysis, using the Fitter class object.

The visualization and output type can be fully customized.

Parameters:
  • fit (autolens.lens.fitting.Fitter) – Class containing fit between the model data and observed lens data (including residual_map, chi_squared_map etc.)
  • output_path (str) – The path where the data is output if the output_type is a file format (e.g. png, fits)
  • output_format (str) – How the data is output. File formats (e.g. png, fits) output the data to harddisk. ‘show’ displays the data in the python interpreter window.
figures_2d_of_mapper(mapper_index: int = 0, reconstructed_image: bool = False, reconstruction: bool = False, errors: bool = False, residual_map: bool = False, normalized_residual_map: bool = False, chi_squared_map: bool = False, regularization_weights: bool = False)

Plot the model data of an analysis, using the Fitter class object.

The visualization and output type can be fully customized.

Parameters:
  • fit (autolens.lens.fitting.Fitter) – Class containing fit between the model data and observed lens data (including residual_map, chi_squared_map etc.)
  • output_path (str) – The path where the data is output if the output_type is a file format (e.g. png, fits)
  • output_format (str) – How the data is output. File formats (e.g. png, fits) output the data to harddisk. ‘show’ displays the data in the python interpreter window.