New architecture and functions for n.explore() using a new PydeckPlotter class#1312
New architecture and functions for n.explore() using a new PydeckPlotter class#1312
Conversation
… .show() to .explore()
…s. Implemented a variety of error checks, warnings and dropping of components in plot.
…ded to empty lines/links.
|
Update: Apart from generating pie charts based on multi-index pd.Series, all functionality from static n.plot() are now implemented in n.explore, with identical API wherever applicable: Currently, n.explore() would directly return a functioning pydeck object which could be directly manipulated using pydecks built-in methods. It also allows for stacking with other already generated pydeck object, very similar to how matplotlib.pyplot handles stacking. However, by returning a pydeck object directly, subsequent manipulations to the generated object can only be done on the pydeck object level, not on the PydeckPlotter class (which is introduced in pypsa.plot.maps.interactive). For example, not implemented though, the PydeckPlotter class can have additional properties like Long story short, here are the options I see: Do you have any thoughts @lkstrp, @fneum, @FabianHofmann ? |
|
From my side it's also ready to merge :) |

Changes proposed in this Pull Request
n.explore()and extending its functionalities with interactive plotsImplemented features
Checklist
doc.doc/release_notes.rstof the upcoming release is included.