environmentaltools.graphics.peaks_over_threshold

environmentaltools.graphics.peaks_over_threshold(event, df, umb)[source]

Plot pairwise scatter plots of variables with peaks over threshold.

Displays two-by-two scatter plots of variables with annual extreme events and values exceeding specified thresholds highlighted.

Parameters:
  • event (pd.DataFrame) – DataFrame with annual peaks of the main variable and values of accompanying variables.

  • df (pd.DataFrame) – DataFrame with all data for main and accompanying variables.

  • umb (array-like) – Series of threshold values to plot.

Returns:

Figure containing the scatter plots.

Return type:

matplotlib.figure.Figure