incerto.shift.plot_shift_severity#
- incerto.shift.plot_shift_severity(severity_values, shift_scores, severity_label='Shift Severity', score_label='Shift Score', warning_threshold=None, critical_threshold=None, show=True)[source]#
Plot shift scores against a severity measure (e.g., rotation degrees, time).
- Parameters:
severity_values (
Iterable[float]) – X-axis values (e.g., [0, 10, 20, 30, 45])severity_label (
str) – Label for x-axisscore_label (
str) – Label for y-axiswarning_threshold (
Optional[float]) – Optional threshold line for warningscritical_threshold (
Optional[float]) – Optional threshold line for critical alertsshow (
bool) – Whether to call plt.show() (default: True)
- Return type:
Figure- Returns:
The matplotlib Figure object for further customization