I have a bunch of x,y scatter data and I am trying to fit an ellipse through them. I understand that this question has been asked before and there are resources for this, e.g.:
However, in my scenario, I need to add in an additional constraint. The ellipse may be rotated, but, it has to rotate about its pivot which is defined by the rightmost/lowest point. I illustrate this problem in the figure below, where the rotation of the 'best-fit' ellipse takes place about its pivot point (circled in red).
In essence, this necessitates that the major semi-axis has to pass through that pivot point.
What would be the best possible way to incorporate this constraint in the ellipse fitting process?