bayespy.plot.ellipse_from_precision

bayespy.plot.ellipse_from_precision(xy, precision, scale=2, **kwargs)[source]

Create an ellipse from a covariance matrix.

Parameters:
  • xy (np.ndarray) – position of the ellipse

  • cov (np.ndarray) – covariance matrix

  • scale (float) – scale of the ellipse (default is three standard deviations)

  • kwargs (dict) – keyword arguments passed on to matplotlib.patches.Ellipse

Returns:

ellipse

Return type:

matplotlib.patches.Ellipse