ruins.plotting.dists#

Distribution plots as used by the uncertainty application.

Module Contents#

Functions#

distribution_plot(→ plotly.graph_objects.Figure)

Concept plot for PDFs of different events.

ruins.plotting.dists.distribution_plot(*events: List[dict], fig: plotly.graph_objects.Figure = None, **kwargs) plotly.graph_objects.Figure#

Concept plot for PDFs of different events. This plot illustrates the interdependece of Kngihtian uncertainty and risk for a set of events. At least one event has to be passed.

Parameters:

events (List) –

Each event is represented by a dict, that has to contain the following keys: outcomes: List[Tuple[float, float]]

The mu and std of each outcome for this event

Additionally, the following keys are optional: dist : str

The distribution of the event. Default is ‘norm’.

coloscalestr

The colorscale used to color the events. Default is a cycle through [‘Greens’, ‘Reds’, ‘Blues’]

namestr

Name for this event

Returns:

fig – Result plot

Return type:

go.Figure