https://github.com/PyPSA/PyPSA
Raw File
Tip revision: 85bf33f1f9f1f8691d00910c4256aa8e96e3511e authored by Tom Brown on 27 March 2018, 19:59:24 UTC
PyPSA Version 0.13.1
Tip revision: 85bf33f
plotting.rst
######################
 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
<https://d3js.org/>`_-based library `plotly
<https://plot.ly/python/>`_ (this uses JavaScript and SVGs). This is
meant for use with `Jupyter notebooks <https://jupyter.org/>`_.

Call ``network.iplot()``; see the doc string for more instructions and
the `SciGRID plotly example
<https://pypsa.org/examples/scigrid-lopf-then-pf-plotly.html>`_.


Static plotting with matplotlib
===============================

Static plots of networks can be created that use the library
`matplotlib <https://matplotlib.org/>`_.  This is meant for use with
`Jupyter notebooks <https://jupyter.org/>`_, but can also be used to
generate image files.

Call ``network.plot()``; see the doc string for more instructions and
the `SciGRID matplotlib example
<https://pypsa.org/examples/scigrid-lopf-then-pf.html>`_.
back to top