Skip to content

Editing dynamic plot legend & Li metal anode options #1845

Discussion options

You must be logged in to vote

Hi Jack,

You can pass an extra argument label to pybamm.dynamic_plot to define the labels in the legend:

pybamm.dynamic_plot(sims, labels=["1", "2", "3", "4"])

For the lithium-metal models, you can see an example on how to call them in examples/scripts/compare_lithium_ion_half_cell.py.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Jack-Waghorne
Comment options

@brosaplanella
Comment options

brosaplanella Dec 9, 2021
Maintainer Sponsor

@Jack-Waghorne
Comment options

@brosaplanella
Comment options

brosaplanella Dec 9, 2021
Maintainer Sponsor

Answer selected by Jack-Waghorne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants