bayespy.plot.ellipse_from_cov

bayespy.plot.ellipse_from_cov(xy, cov, scale=2, **kwargs)[source]

Create an ellipse from a covariance matrix.

Parameters
xynp.ndarray

position of the ellipse

covnp.ndarray

covariance matrix

scalefloat

scale of the ellipse (default is three standard deviations)

kwargsdict

keyword arguments passed on to matplotlib.patches.Ellipse

Returns
ellipsematplotlib.patches.Ellipse