Hi, Rooters,
I have some histograms which have been filled in a script without opening TCanvas and TPad.
So, examples like this don’t help me much, root.cern.ch/root/html/tutorial … les.C.html.
Although I’ve tried a lot, still stuck.
Do your guys have any comments to fix it ?
Thanks !
Best,
Junhui
My code is something like this.
TH1F hist // histogram definition here.
gPad->SetLogy();
for(int i=0;i<npix;++i){
hist->Fill(outArray[i]);
}
gPad->Modified();
gPad->Update();