visualise_linear
visualise_linear(show=True, save_path=None, target_pod=0.9, confidence_level=95)Plots the results of linear_pod(): the signal model and the PoD curve.
The figures’ axes are stored in linear_plots under "signal_model" and "pod_curve". Logs a message and does nothing if linear_pod() has not run.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| show | bool | If True, calls plt.show(). Defaults to True. | True |
| save_path | str | Prefix for saved figures; writes {save_path}_linear_signal.png and {save_path}_linear_pod.png. Defaults to None. |
None |
| target_pod | float | PoD level marked on the curve, as a fraction. Defaults to 0.90. | 0.9 |
| confidence_level | float | Confidence level (%) of the bounds to draw. Defaults to 95. | 95 |
Raises
| Name | Type | Description |
|---|---|---|
| ValueError | If no bounds were bootstrapped at confidence_level. |
Examples
study.linear_pod(poi_col="Length", threshold=4.0)
study.visualise_linear(show=False, save_path="linear")