autocti.plot.YXPlot#

class autocti.plot.YXPlot(plot_axis_type=None, label=None, **kwargs)[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: Union[ndarray, Array1D], x: Union[ndarray, Array1D], label: Optional[str] = None, plot_axis_type=None, y_errors=None, x_errors=None, y_extra=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 – The ydata that is plotted.

  • x – 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 – Optionally include a label on the plot for a Legend to display.