Plot Summary Variables#

pybamm.plot_summary_variables(solutions, output_variables=None, labels=None, show_plot=True, **kwargs_fig)[source]#

Generate a plot showing/comparing the summary variables.

Parameters:
  • solutions ((iter of) pybamm.Solution) – The solution(s) for the model(s) from which to extract summary variables.

  • output_variables (list (optional)) – A list of variables to plot automatically. If None, the default ones are used.

  • labels (list (optional)) – A list of labels to be added to the legend. No labels are added by default.

  • 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_fig – Keyword arguments, passed to plt.subplots.