# autolens.plot.MapperPlotter¶

class autolens.plot.MapperPlotter(mapper: Union[autoarray.inversion.mappers.rectangular.MapperRectangular, autoarray.inversion.mappers.voronoi.MapperVoronoi], 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__(mapper: Union[autoarray.inversion.mappers.rectangular.MapperRectangular, autoarray.inversion.mappers.voronoi.MapperVoronoi], 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__(mapper, …) Initialize self. 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: figure_2d(solution_vector) 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. open_subplot_figure(number_subplots, …) Setup a figure for plotting an image. plot_source_from(source_pixelization_values, …) 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_image_and_mapper(image) 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_source_with_include_2d Extracts from a Mapper attributes that can be plotted for figures in its source-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. The collection of attributes that can be plotted by a Plotter2D object. Visuals2D
visuals_source_with_include_2d

Extracts from a Mapper attributes that can be plotted for figures in its source-plane (e.g. the reconstruction 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 source-plane:

• origin: the (y,x) origin of the coordinate system in the source plane.
• mapper_source_pixelization_grid: the Mapper’s pixelization grid in the source-plane.
• mapper_source_grid_slim: the Mapper’s full grid in the source-plane.
• mapper_border_grid: the border of the Mapper’s full grid in the data-plane.
Parameters: mapper (Mapper) – The mapper whose source-plane attributes are extracted for plotting. The collection of attributes that can be plotted by a Plotter2D object. Visuals2D