dtscalibration.plot.plot_residuals_reference_sections_single

dtscalibration.plot.plot_residuals_reference_sections_single(resid, fig=None, title=None, plot_avg_std=None, plot_names=True, sections=None, robust=True, units='', fig_kwargs=None)[source]

Analyze the residuals of the reference sections, between the Stokes signal and a best-fit decaying exponential.

Parameters:
  • plot_avg_std

  • resid (DataArray) – The residuals of the fit to estimate the noise in the measured Stokes signal. is returned by variance_stokes_*()

  • fig (Figurehandle, optional)

  • title (str, optional) – Adds a title to the plot

  • plot_names (bool) – Whether the names of the sections are plotted on top of the residuals

  • sections (Dict[str, List[slice]]) – The sections obj is normally used to set DataStore.sections, now is used toobtain the section names to plot the names on top of the residuals.

  • ‘time’ (str) – Name of the time dimension to average/take the variance of

  • “x” (str) – Name of the spatial dimension

  • Returns

  • ——–

  • fig (Figurehandle)