environmentaltools.graphics.threshold_fits

environmentaltools.graphics.threshold_fits(event, df, ajuste, umb, comb, fun, ejes)[source]

Plot pairwise scatter plots with regression fits over threshold.

Displays two-by-two scatter plots with fitted regression curves for values exceeding different thresholds, including confidence intervals.

Parameters:
  • event (list) – List of values exceeding each threshold (length equals number of thresholds).

  • df (pd.DataFrame) – DataFrame containing all time series.

  • ajuste (dict) – Dictionary with fit values (x, upper_ci, mean, lower_ci) for each threshold. Keys follow format: ‘x’+comb+fun+threshold, ‘y’+comb+fun+threshold, ‘ysup’+comb+fun+threshold, ‘yinf’+comb+fun+threshold. For directional variables (dh, dv), includes directional sector keys.

  • umb (array-like) – Threshold values to evaluate.

  • comb (list) – Variable combinations to plot.

  • fun (list) – Function names used for fitting.

  • ejes (list) – Axis labels for each variable.

Returns:

Displays the plots.

Return type:

None

Note

Directional variables (dh, dv) are handled specially with modulo 360 for angular wrapping and may include multiple directional sectors.