autolens.plot.Grid2DPlotter#

class autolens.plot.Grid2DPlotter(grid: autoarray.structures.grids.uniform_2d.Grid2D, 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>)[source]#
__init__(grid: autoarray.structures.grids.uniform_2d.Grid2D, 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>)[source]#

Plots Grid2D objects using the matplotlib method scatter() 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 Grid2D and plotted via the visuals object, if the corresponding entry is True in the Include2D object or the config/visualize/include.ini file.

Parameters
  • grid – The 2D grid the plotter plot.

  • mat_plot_2d – Contains objects which wrap the matplotlib function calls that make 2D plots.

  • visuals_2d – Contains 2D visuals that can be overlaid on 2D plots.

  • include_2d – Specifies which attributes of the Grid2D are extracted and plotted as visuals for 2D plots.

Methods

__init__(grid[, mat_plot_2d, visuals_2d, …])

Plots Grid2D objects using the matplotlib method scatter() and many other matplotlib functions which customize the plot’s appearance.

close_subplot_figure()

figure_2d([color_array])

Plots the plotter’s Grid2D object in 2D.

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()

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_plotters_figure(plotter_list, name)

Attributes

get_1d

get_2d

is_for_subplot