Open AndrewAnnex opened 2 years ago
Yeah — the ReconstructedPlane
has always had a few bugs. The math is not nearly as well-controlled as the primary forward fitting algorithms. It appears that the scaling on both error ellipses has some problems in this view, alas
These polar plotting functions in Python have always been a bit terrible. I'll try to give this another look later this week.
While attempting to plot some real data with the stereonet or polar plotting methods I found that the error ellipses plotted did not make sense relative to the fitted data results. I believe I isolated the issue to the default
covariance_matrix
returned byPCAOrientation
relative to the one returned by converting the same fit to aReconstructedPlane
object.for example a PCAOrientation fitted as:
plots as the following using the object directly using a polar plot
constructing a
ReconstructedPlane
and modifying the following attributes using:results in the following plot using the same code
The only relevant difference I could find is the returned covariance matrix which for the pcafit object is:
and for the
rp
objectIt's not clear why these are not equivalent