Editing dynamic plot legend & Li metal anode options #1845
-
Hello PyBaMM contributors, I have created a dynamic plot containing two different power drive cycles over the same period, using the same model. I was hoping to edit the legend to reflect the power cycle used rather than the model which is the default, I was curious if there was a way of doing this? Along with this, I have been trying to utilise the full or sub-model for lithium metal anodes described in your documentation. With the full model I was confused by what options the model is looking for as I keep getting the error "unexpected keyword argument 'options'". When using the sub-model, is it a simple case of redefining the working electrode and assigning it a new material within that statement? I was curious if there are any examples of either of these available? I am new to Python so I apologise if these answers are glaringly obvious. Thank you in advance for your guidance. Kind regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi Jack, You can pass an extra argument 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 |
Beta Was this translation helpful? Give feedback.
Hi Jack,
You can pass an extra argument
label
topybamm.dynamic_plot
to define the labels in the legend:For the lithium-metal models, you can see an example on how to call them in
examples/scripts/compare_lithium_ion_half_cell.py
.