environmentaltools.graphics.scatter_error_dependencies

environmentaltools.graphics.scatter_error_dependencies(df_dt: dict, variables: list, label: str, ax=None, file_name: str = None)[source]

Plot scatter comparison before and after temporal dependency correction.

Displays side-by-side scatter plots showing data before and after removing temporal dependencies to assess the effect of the transformation.

Parameters:
  • df_dt (dict) – Dictionary containing temporal dependency parameters with keys: - ‘data_before’: Original time series DataFrame - ‘data_after’: Decorrelated time series DataFrame

  • variables (list) – List of two variable names to plot [var_x, var_y].

  • label (str) – Title label for the plot.

  • ax (matplotlib.axes.Axes, optional) – Axis for the plot. Creates new if None. Defaults to None.

  • file_name (str, optional) – File path to save the plot. If None, displays interactively. Defaults to None.

Returns:

The axis with the plot.

Return type:

matplotlib.axes.Axes