environmentaltools.graphics.ensemble_acorr

environmentaltools.graphics.ensemble_acorr(lags: list, lagsim: list, corr_: list, corrsim_: list, vars_: list, ax=None, file_name: str = None)[source]

Plots the correlation bands of RCMs and a given simulation

Parameters:
  • lags (list) – lags of RCM data from correlation functions (x-axis)

  • lagsim (list) – lags of simulation data from correlation functions (x-axis)

  • corr (list) – correlation of RCM data

  • corrsim (list) – correlation of simulations

  • vars (list) – variables to be plotted

  • ax ([matplotlib.ax], optional) – Axis where to plot the figure. Defaults to None.

  • file_name (str, optional) – A file name for saving the figure. Defaults to None.

Returns:

the figure

Return type:

ax.matplotlib