autogalaxy.plot.YX1DPlotter#
- class YX1DPlotter[source]#
Bases:
Plotter
Plots two 1D objects using the matplotlib method plot() (or a similar method) and many other matplotlib functions which customize the plot’s appearance.
The mat_plot_1d 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 MatPlot1d to customize the figure’s appearance.
Overlaid on the figure are visuals, contained in the Visuals1D object. Attributes may be extracted from the Array1D and plotted via the visuals object, if the corresponding entry is True in the Include1D object or the config/visualize/include.ini file.
- Parameters:
y (
Union
[Array1D
,List
]) – The 1D y values the plotter plot.x (
Union
[Array1D
,Grid1D
,List
,None
]) – The 1D x values the plotter plot.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 Array1D are extracted and plotted as visuals for 1D plots.
Methods
close_subplot_figure
Plots the plotter's y and x values in 1D.
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_1d
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
subplot_of_plotters_figure
Attributes
get_1d
get_2d
is_for_subplot