Logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2025 Patrick Müller. All rights reserved.

qspec.analyze.draw_straight_unc_area  (  x a b sigma_a sigma_b corr_ab ** kwargs  )[source]

Draws the $1\sigma_f$ standard deviation area of a straight $f$ enclosed by $$[f(x) - \sigma_f(x), f(x) + \sigma_f(x)].$$

Parameters:
xarray_like

The $x$ values.

aarray_like

The y-intercept $a$.

barray_like

The slope $b$.

sigma_aarray_like

The standard deviation $\sigma_a$ of the y-intercept a.

sigma_barray_like

The standard deviation $\sigma_b$ of the slope b.

corr_abarray_like

The correlation coefficient $\rho_{ab}$ between the y-intercept a and the slope b.

kwargsNone

The keyword arguments for the fill_between function.

Returns:
outNone

API navigation