xoa.core.plot.cov2ellipse

Contents

xoa.core.plot.cov2ellipse#

xoa.core.plot.cov2ellipse(ustd, vstd, uvcorr)[source]#

Get the ellipses that are described by 2x2 covariance matrices

Parameters:
  • ustd (array_like) – Standard deviations of the two components

  • vstd (array_like) – Standard deviations of the two components

  • uvcorr (array_like) – Correlation between the two components, between -1 and 1

Returns:

  • numpy.ndarray – Standard deviation along the major axis, that is the square root of the largest eigenvalue

  • numpy.ndarray – Standard deviation along the minor axis

  • numpy.ndarray – Angle of the major axis in radians, counter-clockwise from the first component