Plot Voltage Components#

pybamm.plot_voltage_components(input_data, ax=None, show_legend=True, split_by_electrode=False, show_plot=True, **kwargs_fill)[source]#

Generate a plot showing the component overpotentials that make up the voltage

Parameters:
  • input_data (pybamm.Solution or pybamm.Simulation) – Solution or Simulation 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

  • split_by_electrode (bool, optional) – Whether to show the overpotentials for the negative and positive electrodes separately. Default is False.

  • show_plot (bool, optional) – Whether to show the plots. Default is True. Set to False if you want to only display the plot after plt.show() has been called.

  • kwargs_fill – Keyword arguments, passed to ax.fill_between