autolens.plot.YXPlot

class autolens.plot.YXPlot(plot_axis_type=None, label=None, **kwargs)
__init__(plot_axis_type=None, label=None, **kwargs)

Plots 1D data structures as a y vs x figure.

This object wraps the following Matplotlib methods:

Methods

__init__([plot_axis_type, label]) Plots 1D data structures as a y vs x figure.
plot_y_vs_x(y, …[, plot_axis_type, …]) Plots 1D y-data against 1D x-data using the matplotlib method plt.plot, plt.semilogy, plt.loglog, or plt.scatter.

Attributes

config_dict
config_folder
plot_y_vs_x(y: Union[numpy.ndarray, autoarray.structures.arrays.one_d.array_1d.Array1D], x: Union[numpy.ndarray, autoarray.structures.arrays.one_d.array_1d.Array1D], label: str = None, plot_axis_type=None, y_errors=None, x_errors=None)

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.