add_ellp_patch2

compass.helperfunctions.add_ellp_patch2(x_mean, y_mean, major, minor, angle, color, linestyle, axis, linewidth=1, alpha=1, zorder=1)

Adds a patch to a figure. The patch includes a ellipse at the means of a pdf with a scalable magnitude in the both axis directions. :param pdf: 2D Gaussian function. :type pdf: astropy.modeling.Gaussian2D :param eigvalue: List of eigenvalues of the cov matrix. :type eigvalue: list :param angle: Angle of the eigenvectors in radian. :type angle: float :param i: Scaling the magnitude of the eigenvalues. :type i: float :param axis: E.g. plt, axs[1,0] :type axis: figure axis