ellipsoid_fit_python
ellipsoid_fit_python copied to clipboard
Data not being plotted/fitted correctly?
Hi,
The code doesn't seem to produce the right result or maybe I'm looking at it the wrong way. I have attached a plot of the result.
The data seems to plot an oblate spheroid but the fit model (the orange plot) shows a prolate spheroid. Why is that? Is it because it is reading the wrong coordinates maybe?
I have attached the coordinate text file as well. Please let me know if you get the same result or not.
Thank you Robin
The red one is actually a sphere - two days ago i fixed incompatibility with newer matplotlib #9 - they removed option for equal axes scale. The red dots are just the green ones with transformation which makes the green fitted ellipse into an orange sphere. You can install 2.x version of matplotlib and uncomment lines in plot_ellipsoid.py hack for equal axes
Maybe I should rewrite readme and add fixed version of matplotlib to requirements.txt, I don't know. Also are you sure your data belong on the ellipsoid surface? If you are not sure, please, take a look at #5
That is your plot stretched to fullhd and rotated a bit. I think it is a sphere, just uneven scale on axes is confusing now.
And here is top-view, Which is perfectly correct for data not belonging on the surface of an ellipse. I think, I'll post an explanation as a separate issue.
Take a look at #11
@aleksandrbazhin Yes, that was really helpful. I'll try to refine the data before using and will update here. Thank you