hadar.viewer.abc.
ABCElementPlotting
Bases: abc.ABC
abc.ABC
Abstract interface to implement to plot graphics
candles
Plot candle stick with open close :param open: candle open data :param close: candle close data :param title: title to plot :return:
gaussian
Plot gaussian.
rac – Remain Available Capacities matrix (to plot green or red point)
qt – value vector
title – title to plot
map_exchange
Plot map with exchanges as arrow.
nodes – node to set on map
lines – arrow to se on map
limit – colorscale limit to use
zoom – zoom to set on map
matrix
Plot matrix (heatmap)
data – 2D matrix to plot
monotone
Plot monotone.
y – value vector
stack
Plot stack.
areas – list of timelines to stack with area
lines – list of timelines to stack with line
timeline
Plot timeline with all scenarios.
df – dataframe with scenario on columns and time on index
ABCPlotting
Abstract method to plot optimizer result.
network
Entry point to use fluent API.
network – select network to anlyze. Default is ‘default’
NetworkFluentAPISelector
ConsumptionFluentAPISelector
Bases: hadar.viewer.abc.FluentAPISelector
hadar.viewer.abc.FluentAPISelector
Consumption level of fluent api.
Plot gaussian graphics
t – focus on t index
scn – focus on scn index if t not given
Plot monotone graphics.
Plot timeline graphics. :return:
DestConverterFluentAPISelector
Source converter level of fluent api
FluentAPISelector
not_both
LinkFluentAPISelector
Link level of fluent api
Network level of fluent API
map
Plot map exchange graphics
t – t index to focus
zoom – zoom to set
scn – scn index to focus
limit – color scale limite to use
node
Go to node level fo fluent API :param node: node name :return: NodeFluentAPISelector
rac_matrix
plot RAC matrix graphics
NodeFluentAPISelector
Node level of fluent api
consumption
Go to consumption level of fluent API
name – select consumption name
kind – kind of data ‘asked’ or ‘given’
from_converter
get a converter importation level fluent API :param name: :return:
link
got to link level of fluent API
dest – select destination node name
kind – kind of data available (‘avail’) or ‘used’
production
Go to production level of fluent API
name – select production name
Plot with production stacked with area and consumptions stacked by dashed lines.
node – select node to plot.
scn – scenario index to plot.
prod_kind – select which prod to stack : available (‘avail’) or ‘used’
cons_kind – select which cons to stack : ‘asked’ or ‘given’
plotly figure or jupyter widget to plot
storage
Got o storage level of fluent API
name – select storage name
to_converter
get a converter exportation level fluent API :param name: :return:
ProductionFluentAPISelector
Production level of fluent api
SrcConverterFluentAPISelector
StorageFluentAPISelector
Storage level of fluent API
hadar.viewer.html.
HTMLPlotting
Bases: hadar.viewer.abc.ABCPlotting
hadar.viewer.abc.ABCPlotting
Plotting implementation interactive html graphics. (Use plotly)