plot_residual

plot_residual(res: xr.Dataset, ax: Axis, linlog: bool = False, linthresh: float = 1, show_data: bool | None = False, cycler: Cycler | None = cycler('color', [<ColorCode.black: '#000000'>, <ColorCode.red: '#ff0000'>, <ColorCode.blue: '#0000ff'>, <ColorCode.green: '#00ff00'>, <ColorCode.magenta: '#ff00ff'>, <ColorCode.cyan: '#00ffff'>, <ColorCode.yellow: '#ffff00'>, <ColorCode.green4: '#008b00'>, <ColorCode.orange: '#ff8c00'>, <ColorCode.brown: '#964b00'>, <ColorCode.grey: '#808080'>, <ColorCode.violet: '#9400d3'>, <ColorCode.turquoise: '#40e0d0'>, <ColorCode.maroon: '#800000'>, <ColorCode.indigo: '#4b0082'>]), show_irf_dispersion_center: bool = True, irf_location: float | None = None) None[source]

Plot data or residual on a 2D contour plot.

Parameters:
  • res (xr.Dataset) – Result dataset

  • ax (Axis) – Axis to plot on.

  • linlog (bool) – Whether to use ‘symlog’ scale or not. Defaults to False.

  • linthresh (float) – A single float which defines the range (-x, x), within which the plot is linear. This avoids having the plot go to infinity around zero. Defaults to 1.

  • show_data (bool | None) – Whether to show the input data or residual. If set to None the plot is skipped which improves plotting performance for big datasets. Defaults to False.

  • cycler (Cycler | None) – Plot style cycler to use. Defaults to PlotStyle().cycler.

  • show_irf_dispersion_center (bool) – Whether to show the the IRF dispersion center as overlay on the residual/data plot. Defaults to True.

  • irf_location (float | None) – Location of the irf by which the time axis will get shifted. If it is None the time axis will not be shifted. Defaults to None.