###################### Plotting Networks ###################### PyPSA has several functions available for plotting networks with different colors/widths/labels on buses and branches. 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. To plot a network with matplotlib run ``network.plot()``, see :py:meth:`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 that use the `d3js `_-based library `plotly `_ (this uses JavaScript and SVGs). This is meant for use with `Jupyter notebooks `_. To plot a network with plotly run ``network.iplot()``, see :py:meth:`pypsa.Network.iplot` for details.