diagnostic.visualizations.plot_time_series_mod_ref#

plot_time_series_mod_ref(da_mod: DataArray, da_ref: DataArray, ax=None, title: str = None, **kwargs)[source]#

Plot time series for both model and reference datasets on the same axes.

Parameters:
  • da_mod (xarray.DataArray) – The DataArray containing the model time series data.

  • da_ref (xarray.DataArray) – The DataArray containing the reference time series data.

  • ax (matplotlib.axes.Axes, optional) – The axes on which to plot the time series. If None, a new figure and axes are created.

  • title (str, optional) – The title for the plot. If None, a default title based on da_mod attributes is used.

  • **kwargs (dict) – Additional keyword arguments passed to xarray.DataArray.plot.

Returns:

The axes with the plotted time series.

Return type:

matplotlib.axes.Axes