Plotting Networks#

PyPSA has several functions available for plotting networks with different colors/widths/labels on buses and branches and geographic features in the background.

Static plotting with matplotlib#

Static plots of networks can be created that use the library matplotlib.

To plot a network with matplotlib, run n.plot(), see pypsa.Network.plot() for details.

See also the SciGRID matplotlib example and the Flow plotting matplotlib example.

Interactive plotting with plotly#

Interactive plots of networks can be created using plotly. To plot a network with plotly, run n.iplot(), see pypsa.Network.iplot() for details.