plots
plot_empty_heat_map(low=1, high=5)
Creates an empty heat map with customizable axis range and color scale.
Parameters:
low : int, optional The lower bound of the axis range, by default 1. high : int, optional The upper bound of the axis range, by default 5.
Returns:
go.Figure A Plotly figure object representing the empty heat map.
Source code in darpi/qualitative/plots.py
add_scatter_to_heat_map(risk_score_counts, title)
Adds a scatter plot to the heat map, representing risks with their impact and probability.
Parameters:
risks : List[Dict[str, Any]] A list of dictionaries where each dictionary contains 'impact', 'probability', and 'counts' keys, representing the risk's impact, probability, and occurrence count. title : str The title of the resulting heat map with scatter plot.
Returns:
go.Figure A Plotly figure object representing the heat map with the added scatter plot.