How can draw one hyperbolic curve in 2D histogram?
{
TH2F *h1 = new TH2F("h1","",40,0,10,40,0,10);
TF2 *f2 = new TF2("f2", "x*x+y*y",0.,10.,0.,10.);
for (int i =0; i<10000; i++) {
h1->Fill(gRandom->Gaus(6,1),gRandom->Gaus(6,1));
}
h1->SetMaximum(200);
h1->SetMinimum(0);
f2->SetMaximum(200);
f2->SetMinimum(0);
h1->Draw("LEGO1");
f2->Draw("surf same");
}
I just want to draw one curve.
May be this example ?
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.