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

plot_y_vs_x

Plots 1D y-data against 1D x-data using the matplotlib method plt.plot, plt.semilogy, plt.loglog, or plt.scatter.

Attributes

config_category

config_dict

config_folder

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:
  • y (Union[ndarray, Array1D]) – The ydata that is plotted.

  • x (Union[ndarray, Array1D]) – The xdata that is plotted.

  • plot_axis_type – The method used to make the plot that defines the scale of the axes {“linear”, “semilogy”, “loglog”, “scatter”}.

  • label (Optional[str]) – Optionally include a label on the plot for a Legend to display.