- #1
lavster
- 217
- 0
can someone tell me what is wrong with my code. i get the graph that i want but not with the log scale... i have tried multiple methods. this is the last one i tried (its part of a canvas which is split into quadrants)
TH1F* h3 = (TH1F*) inputfile3 -> Get("pdg");
c->cd(3);
h3->GetXaxis()->SetTitle("pdg code (high)");
h3->Draw();
c->Modified();
c->Update();
c->SetLogy(1);
c->Modified();
and then onto other quadrant...
thanks :)
TH1F* h3 = (TH1F*) inputfile3 -> Get("pdg");
c->cd(3);
h3->GetXaxis()->SetTitle("pdg code (high)");
h3->Draw();
c->Modified();
c->Update();
c->SetLogy(1);
c->Modified();
and then onto other quadrant...
thanks :)