reho.plotting.sankey#

Builds a dataframe for the visualization of annual flows from REHO results in the form of a Sankey diagram.

Functions

add_base_flows(df_annuals, df_label, df_stv)

add_flow(source, dest, layer, hub, dem_sup, ...)

Adds an energy flow for the sankey diagram according cell(s) of df_annuals if cell not null

add_label_value(df_label, df_stv, precision, ...)

Adds the values from df_stv to the labels of df_labels.

apply_non_default_layers(df_annuals, ...)

df_sankey(df_Results[, label, color, ...])

Builds the Sankey dataframe.

update_label(source_name, target_name, df_label)

Updates labels of df_label if source_name or target_name not in index of df_label.