Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change plotting to a more interactive library #7

Open
jgieseler opened this issue Sep 23, 2022 · 0 comments
Open

Change plotting to a more interactive library #7

jgieseler opened this issue Sep 23, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@jgieseler
Copy link
Member

Currently, all plots are done using matplotlib code and %matplotlib inline in the Notebooks to produce static plots. However, it would be really helpful to have some interactive plotting functionality, e.g. to change the plotting range. This needs at the moment to be done manually, and it is one of the main sources for Python errors when working with the tools (because the user changes e.g. the time range for the data loading, but not the plotting range).

While %matplotlib notebook provides automatically some interactive functionality, it still has some problems. For example, when the whole notebook is executed, the output figures only appear after all cells have been processed, which can be quite confusing for the user and is problematic if the execution fails somewhere in between. On the other hand, changing from %matplotlib inline to %matplotlib notebook would be quite easy, only some things like the dpi settings would need adjustments.

There are also other, more "modern" plotting libraries that provides interactive plotting. For example, bokeh or plotly. The downside is that they don't offer as much functionality as matplotlib (so we would need to check if the plot can actually be reproduced with these tools), and that our actual code would need more rewriting. This shouldn't be too much, and maybe even a got lesson to learn the new plotting library.

@jgieseler jgieseler added the enhancement New feature or request label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant