Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.12 KB

plotting.rst

File metadata and controls

35 lines (24 loc) · 1.12 KB

Plotting Networks

See the module pypsa.plot.

PyPSA has several functions available for plotting networks with different colors/widths/labels on buses and branches.

Interactive plotting with plotly

Interactive plots of networks can be created that use the d3js-based library plotly (this uses JavaScript and SVGs). This is meant for use with Jupyter notebooks.

Call network.iplot(); see the doc string for more instructions and the SciGRID plotly example.

Static plotting with matplotlib

Static plots of networks can be created that use the library matplotlib. This is meant for use with Jupyter notebooks, but can also be used to generate image files.

Call network.plot(); see the doc string for more instructions and the SciGRID matplotlib example.