Improvements to plotting functionality
Description
Here are a list of possible improvements to PyBaMM's plotting capability (please suggest additional ones if you have any ideas):
- [ ] #4271
- [ ] Have a
static_plotmode so variables that depend on space (1D) and time are plotted as heatmaps rather than dynamic curves. - [ ] When a plot has two lines, both constant, but of different value, they don't display as they sit in the edge of the plot (the current fix for constants only works if there is a single line).
Motivation
No response
Possible Implementation
No response
Additional context
Not sure if there are easy hacks or ways around this, but if so it was not clear in the docs.
I think a portion of create_gif does act as the proposed QuickPlot.plot. We can maybe refactor this method to make way for the new method -
https://github.com/pybamm-team/PyBaMM/blob/e730dcb7cfc7c6da595618502d4e026378c0d4f4/pybamm/plotting/quick_plot.py#L745-L772
My bad, I wasn't very clear. I meant multiple snapshots on the same plot.
I would also like to work on the second issue, which involves creating a static_plot function. Could you please provide a more detailed explanation of this issue to help me better understand the requirements?