Generate a simple 1D plot. Calls matplotlib.pyplot.plot with keyword arguments ‘kwargs’. For a list of ‘kwargs’ see the matplotlib plot documentation
x (pybamm.Array
) – The array to plot on the x axis
y (pybamm.Array
) – The array to plot on the y axis
ax (matplotlib Axis, optional) – The axis on which to put the plot. If None, a new figure and axis is created.
testing (bool, optional) – Whether to actually make the plot (turned off for unit tests)
kwargs – Keyword arguments, passed to plt.plot