Given a 2-dimensional dataset, I would like to plot an Ellipse around the data. For this, I first calculated the Covariance Matrix and its associated Eigenvalues:
cov = np.cov(X.T)
eigenvalues, eigenvectors = np.linalg.eig(cov)
I would now like to plot an Ellipse around the two Eigenvectors using matplotlib, but can't figure out, how. I suppose some kind of projection (e.g. dot product) will be necessary?
Any help is greatly appreciated!
