PyBaMM icon indicating copy to clipboard operation
PyBaMM copied to clipboard

Improvements to plotting functionality

Open brosaplanella opened this issue 2 years ago • 2 comments

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_plot mode 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.

brosaplanella avatar Jul 19 '23 11:07 brosaplanella

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

Saransh-cpp avatar Jul 20 '23 16:07 Saransh-cpp

My bad, I wasn't very clear. I meant multiple snapshots on the same plot.

brosaplanella avatar Jul 20 '23 19:07 brosaplanella

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?

medha-14 avatar Nov 22 '24 16:11 medha-14