slv.inversion.viz.plot_residuals#

slv.inversion.viz.plot_residuals(post, rolling_window='30D', gap_threshold='7D', show_raw=True, location_dim='obs_location')[source]#

Plot posterior - observed concentration residuals for all sites.

Parameters:
  • post (Posterior) – The solved inversion.

  • rolling_window (str or int, default '30D') – Rolling window for smoothed lines.

  • gap_threshold (str, default '7D') – Minimum gap duration to highlight as missing data.

  • show_raw (bool, default True) – Whether to show raw residual points behind the smoothed lines.

  • location_dim (str, default 'obs_location') – Name of the location dimension in the data.