bayespy.plot.ellipse_from_precision

bayespy.plot.ellipse_from_precision(xy, precision, 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