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_sigma2d  (  x y sigma_x sigma_y corr n = 1 ** kwargs  )[source]

Draws the $n\sigma$ bounds of the given data points $(x, y)$ with standard deviations $(\sigma_x, \sigma_y)$ and correlation $\rho_{xy}$.

Parameters:
xarray_like

The $x$ data.

yarray_like

The $y$ data.

sigma_xarray_like

The standard deviation $\sigma_x$ of the x data.

sigma_yarray_like

The standard deviation $\sigma_y$ of the y data.

corrarray_like

The correlation coefficients $\rho_{xy}$ between the x and y data.

nint

The maximum sigma region $n$ to draw.

kwargsNone

Additional keyword arguments are passed to plt.plot(). Use key fmt to specify the third argument of plt.plot().

Returns:
outNone

API navigation