qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

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

Draw the $1\sigma_f$ standard deviation area of a straight line $f$ straight enclosed by

$$ [f(x) - \sigma_f(x), f(x) + \sigma_f(x)], $$

see straight_std.

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.

kwargs

Additional keyword arguments are passed to matplotlib.pyplot.fill_between.