add_percolation_windows_to_fig
go-to Adds internal and PLD-critical window traces onto an existing Plotly figure.
workflow.add_percolation_windows_to_fig(
fig,
analysis_result,
pld_probe_radius=None,
pld_tolerance=0.25,
)Add window traces (regular + PLD-critical diamonds) to an existing figure.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| fig | plotly Figure (go.Figure) | required | |
| analysis_result | dict with ‘connections’ key from segmentation | required | |
| pld_probe_radius | if given, highlight PLD-critical windows as red diamonds | None |
|
| pld_tolerance | radius tolerance for PLD-critical classification (default 0.25) | 0.25 |
Returns
| Name | Type | Description |
|---|---|---|
| figure with window traces added |