error_ellipses#

agabpylib.plotting.inference.error_ellipses(mu, covmat, sigma_levels, **kwargs)#

Given a covariance matrix for a 2D Normal distribution calculate the uncertainty-ellipses and return matplotlib patches for plotting them.

Parameters:
  • mu (float array) – Mean of Normal distribution (2-vector)

  • covmat (float array) – Covariance matrix stored as [sigma_x^2, sigma_y^2, sigma_xy]

  • sigma_levels (float or 1-D array) – Equivalent n-sigma levels to draw

  • **kwargs – Extra arguments for matplotlib.patches.Ellipse

Returns:

patches – List of matplotlib.patches.Ellipse objects

Return type:

list of matplotlib.patches.Ellipse