Plot contour with 2(3) sigma line

hi, dear experts, I wanna plot a contour diagram and add the 2 and 3 sigma lines to the diagram, but the result is ugly. I have a root file which stores the branch of “deltaNLL”,“kappa” and “kappa_t”.The code is as following, would you mind tell me how to modify the code to make the diagram looks better.

limit->Draw("2*deltaNLL:kappa_t:kappa>>hh2(20,0.0,2.0,20,-2.0,2.0)","","PROF colz");
TH2F *h2=(TH2F*)gROOT->FindObject("hh2")->Clone();
h2->SetTitle(";#kappa;#tilde{#kappa}");
h2->Draw("prol colz");

double contours[2];
contours[0]=2.33;
contours[1]=5.99;
h2->SetContour(2,contours);
h2->Draw("cont3 z same");

kappa.pdf (16.8 KB)

Try with: hh2(52, 0.0, 1.3, 80, -1.0, 1.0)

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.