Generate a plot showing the component overpotentials that make up the voltage
solution (pybamm.Solution
) – Solution object from which to extract voltage components
ax (matplotlib Axis, optional) – The axis on which to put the plot. If None, a new figure and axis is created.
show_legend (bool, optional) – Whether to display the legend. Default is True
testing (bool, optional) – Whether to actually make the plot (turned off for unit tests)
kwargs_fill – Keyword arguments, passed to ax.fill_between