autogalaxy.plot.FitInterferometerPlotter#
- class FitInterferometerPlotter[source]#
Bases:
Plotter
Plots the attributes of FitInterferometer objects using the matplotlib method imshow() and many other matplotlib functions which customize the plot’s appearance.
The mat_plot_1d and mat_plot_2d attributes wrap 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 Visuals1D and Visuals2D objects. Attributes may be extracted from the FitInterferometer and plotted via the visuals object, if the corresponding entry is True in the Include1D or Include2D object or the config/visualize/include.ini file.
- Parameters:
fit (
FitInterferometer
) – The fit to an interferometer dataset the plotter plots.mat_plot_1d (
MatPlot1D
) – Contains objects which wrap the matplotlib function calls that make 1D plots.visuals_1d (
Visuals1D
) – Contains 1D visuals that can be overlaid on 1D plots.include_1d (
Include1D
) – Specifies which attributes of the FitInterferometer are extracted and plotted as visuals for 1D plots.mat_plot_2d (
MatPlot2D
) – Contains objects which wrap the matplotlib function calls that make 2D plots.visuals_2d (
Visuals2D
) – Contains 2D visuals that can be overlaid on 2D plots.include_2d (
Include2D
) – Specifies which attributes of the FitInterferometer are extracted and plotted as visuals for 2D plots.residuals_symmetric_cmap (
bool
) – If true, the residual_map and normalized_residual_map are plotted with a symmetric color map such that abs(vmin) = abs(vmax).
Methods
close_subplot_figure
Returns a GalaxiesPlotter corresponding to an input galaxies list.
get_subplot_figsize
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_real_space
open_subplot_figure
Setup a figure for plotting an image.
set_filename
set_format
set_mat_plot_1d_for_multi_plot
set_mat_plots_for_subplot
set_title
Standard subplot of the attributes of the plotter's FitImaging object.
Standard subplot of the real-space attributes of the plotter's FitInterferometer object.
subplot_of_plotters_figure
Attributes
galaxies
get_1d
get_2d
Returns an InversionPlotter corresponding to the Inversion of the fit.
is_for_subplot
- galaxies_plotter_from(galaxies)[source]#
Returns a GalaxiesPlotter corresponding to an input galaxies list.
- Returns:
The galaxies used to make the GalaxiesPlotter.
- Return type:
galaxies
- property inversion_plotter: InversionPlotter#
Returns an InversionPlotter corresponding to the Inversion of the fit.
- Returns:
An object that plots inversions which is used for plotting attributes of the inversion.
- Return type: