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
pypsa.Network.plot() for details.
Interactive plotting with plotly
meant for use with Jupyter notebooks.
To plot a network with plotly run
pypsa.Network.iplot() for details.