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

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

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.

kwargs

Additional keyword arguments are passed to matplotlib.pyplot.plot. Use the key fmt to specify the format string (third argument) of matplotlib.pyplot.plot.