ellipsoid_fit_python icon indicating copy to clipboard operation
ellipsoid_fit_python copied to clipboard

Data not being plotted/fitted correctly?

Open robineappen opened this issue 4 years ago • 5 comments

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.

chk1

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?

coordextract1_01259.txt

I have attached the coordinate text file as well. Please let me know if you get the same result or not.

Thank you Robin

robineappen avatar Jul 21 '20 13:07 robineappen

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

aleksandrbazhin avatar Jul 22 '20 04:07 aleksandrbazhin

Figure_1-4

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.

aleksandrbazhin avatar Jul 22 '20 04:07 aleksandrbazhin

Figure_1-5 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.

aleksandrbazhin avatar Jul 22 '20 04:07 aleksandrbazhin

Take a look at #11

aleksandrbazhin avatar Jul 22 '20 05:07 aleksandrbazhin

@aleksandrbazhin Yes, that was really helpful. I'll try to refine the data before using and will update here. Thank you

robineappen avatar Jul 22 '20 14:07 robineappen