We have a 2D scattering plot, as attached here; we want to fit the 1 to 3 sigma confidence interval contours on the selected data population (for instance, the bottom right data population), similar to the attached picture. Can somebody please tell me an appropriate example code to refer to? I searched around but couldn’t find one. Thank you for your help.
I’ve looked at this page and found some examples in it, but they don’t quite apply to our data. We want to fit the contour lines 1σ, 2σ, and 3σ, but we don’t know what kind of fitting function is suitable.Can you recommend some examples of fitting methods suitable for our data? Thank you very much for your help! !
Hi,
To obtain the contour lines of a set of 2d points, you can use for example the TRobustEstimator class in ROOT.
I attached here an example drawing the contour probability at 50, 90 and 99%.
When I use this line of code to set the opacity, the transparency of the ellipse does not change. Is this also a problem with my root version? ellipse3->SetFillColorAlpha(4, 0.1);