bayespy.plot.ellipse_from_cov

bayespy.plot.ellipse_from_cov(xy, cov, 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 : matplotlib.patches.Ellipse