gncpy.plotting.calc_error_ellipse

calc_error_ellipse(cov, n_sig)[source]

Calculates parameters for an error ellipse.

This calucates the error ellipse for a given sigma number according to [9].

Parameters:
  • cov (2 x 2 numpy array) – covariance matrix.

  • n_sig (float) – Sigma number, must be positive.

Returns:

  • width (float) – The width of the ellipse

  • height (float) – The height of the ellipse

  • angle (float) – The rotation angle in degrees of the semi-major axis. Measured up from the positive x-axis.