Here are the codes:
TCanvas *c=new TCanvas(c,name,600,600); | |
---|---|
TH2F *histo2=new TH2F(histo2,name,20,0,20,20,0,20); | |
TF2 *dist=new TF2(dist,[0]+[1]*x+[2]*y,0,20,0,20); | |
dist->SetParameters(1,0,0); | |
histo2->FillRandom(dist,40000); | |
histo2->SetMinimum(0); | |
histo2->Draw(LEGO2); |
the output was saved as an image attached. How can I understand the value of each bar? why the mean x is almost 10?
Thanks for your help.
ROOT Version: 6.32
_Platform: Ubuntu
_Compiler:_g++
W