I know matplotlib could plot an ellipse according to its center, semi-major axis length,semi-minor axis length and the angle between x-axis and major axis. But is there any easy way to plot an ellipse according to its general equation just like Matlab:
ezplot('3*x^2+2*x*y+4*y^2 = 5')
I find a way to calculate the center, semi-major axis length,semi-minor axis length and the angle between x-axis and major axis from the general formula. This is the website: link. I use this method and write a function to calculate parameters. Because I'm dealing with the data by drawing the ellipse.The experimental data give me the general equation of the ellipse.I would loop many times (for example, 500) and plot 500 ellipses on a single graph.If you do this every time before plotting, it slows the program down.So I'm looking for whether python provides a way to draw an ellipse directly from the general equation of the ellipse instead of calculating the parameters every time.
Thanks!