autogalaxy.plot.YXPlot#
- class YXPlot[source]#
Bases:
AbstractMatWrap1D
Plots 1D data structures as a y vs x figure.
This object wraps the following Matplotlib methods:
Methods
Plots 1D y-data against 1D x-data using the matplotlib method plt.plot, plt.semilogy, plt.loglog, or plt.scatter.
vmax_from
The vmax of a plot, for example the maximum value of the colormap and colorbar.
vmin_from
The vmin of a plot, for example the minimum value of the colormap and colorbar.
Attributes
config_category
config_dict
config_folder
log10_max_value
log10_min_value
- plot_y_vs_x(y, x, label=None, plot_axis_type=None, y_errors=None, x_errors=None, y_extra=None, y_extra_2=None, ls_errorbar='')[source]#
Plots 1D y-data against 1D x-data using the matplotlib method plt.plot, plt.semilogy, plt.loglog, or plt.scatter.
- Parameters:
plot_axis_type – The method used to make the plot that defines the scale of the axes {“linear”, “semilogy”, “loglog”, “scatter”}.
label (
str
) – Optionally include a label on the plot for a Legend to display.