Skip to content
Discussion options

You must be logged in to vote

If two variables have the same domain you can plot them on the same axes by nesting lists, e.g.

sim.plot([["Negative electrode current density [A.m-2]", "Negative electrolyte current density [A.m-2]"]])

You can pass spatial_unit to the plot to change the units, e.g.

sim.plot([["Negative electrode current density [A.m-2]", "Negative electrolyte current density [A.m-2]"]], spatial_unit="mm")

If you want to create custom plots you can always access the underlying arrays by accessing the solution as a dict and doing .entries, e.g. sim.solution["Negative electrode potential [V]"].entries. This will return an array that you can use to create your own plots however you like.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@linwryn
Comment options

@rtimms
Comment options

rtimms Jun 23, 2022
Collaborator

Answer selected by linwryn
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