Skip to main content

Postprocessing and visualisation tools for oemof-solph models

Project description

oemof’s visualisation package badge

Installation

Use pypi to install the latest version. You can install the version just to plot graphs on oemof-solph results with .. code:: bash

pip install git+https://github.com/oemof/oemof_visio.git

or you can install the extra requirements to also produce an image of the energy system

pip install git+https://github.com/oemof/oemof_visio.git[network]

You can also clone this repository and install locally with

pip install .

or

pip install .[network]

Special for Windows in case of optional network setting: download Graphviz (https://graphviz.org/download/) install it on your system -> activate “add PATH” variables during installation process otherwise the executable cannot be found. Afterwards, restart your environment.

Examples

Have a look at the plotting examples at the ‘oemof_example’ repository to learn how to create the following examples.

(scientifically correct)

docs/io_plot.png

(smooth)

docs/io_plot_smooth_pre.png

Render energy system

To render the component of an energy system, you can insert this code before you turn your EnergySytem instance into a model (not well suited for very large models).

from oemof_visio import ESGraphRenderer
esgr = ESGraphRenderer(
    <your EnergySystem instance>,
    legend=True,
    filepath="full path including filename without extension",
    img_format="pdf"
)
esgr.render()

Sankey diagramm

To produce a sankey diagramm from the raw oemof-solph results you can use this code snippet into your own model file

import plotly.io as pio

from oemof_visio import ESGraphRenderer
esgr = ESGraphRenderer(<your EnergySystem instance>)

# after the solve method of the model has been called
results = solph.processing.results(model)
fig_dict = esgr.sankey(results)
pio.show(fig_dict)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oemof_visio-0.0.2a2.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oemof_visio-0.0.2a2-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file oemof_visio-0.0.2a2.tar.gz.

File metadata

  • Download URL: oemof_visio-0.0.2a2.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for oemof_visio-0.0.2a2.tar.gz
Algorithm Hash digest
SHA256 fbd531358d9c7f55af695fe50526fca8455082ff1c3a80405b34753f293e06cf
MD5 80e13b35c06df465cb95de3df32bc684
BLAKE2b-256 3f5e467f2106314c7f56047d1496057a35887e253d97dc4c3951eb7e132b6806

See more details on using hashes here.

File details

Details for the file oemof_visio-0.0.2a2-py3-none-any.whl.

File metadata

  • Download URL: oemof_visio-0.0.2a2-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for oemof_visio-0.0.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 59d3bf77d088941ab5a55b4992c8e8f357c0d05743215a3547b80e3ba51aed46
MD5 dd849e45ad9b66ccc1cfb9d35f071389
BLAKE2b-256 8d2dfa36b2a82c206f6e2055c00b510f68fa6f425f2a47733fa8154b485f366e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page