Breakout group on visualising networks with plotly

Use plotly to generate nice interactive graphics:

to visualise network flows and properties (i.e. node and edge properties of a directed graph, possibly also time series).

Minimal working example for Jupyter notebook:

Minimal example with plot of Germany network from PyPSA using SciGRID data:

Rivus has some in-built plotting with plotly:

Bad examples with static matplotlib:

You can plot scatters onto a map here: https://plot.ly/python/scattermapbox/

here is an example with directed arrows:

Here is a forked version of @tom_brown’s PyPSA example using Mapbox:

From rivus:
Greatly inspired by
Example1 <https://plot.ly/python/lines-on-maps/>_ and
Example2 <https://plot.ly/python/3d-network-graph/>_.

With hover information on the lines:

Final demonstration of SciGRID with plotly:

https://pypsa.org/examples/plotly_network.html