Previous topic

Plot 2D

Next topic

Plot Summary Variables

This Page

Plot Voltage Components

pybamm.plot_voltage_components(solution, ax=None, show_legend=True, testing=False, **kwargs_fill)[source]

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

Parameters:
  • 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