{ gROOT->SetStyle("Plain"); TCanvas* canvas = new TCanvas("canvas", "canvas", 600, 700); TH1F* h = new TH1F("h","ht", 100, -5, 5); h->FillRandom("gaus",10000); canvas->Divide(2,1); canvas->cd(1); h->Draw(); canvas->Update(); canvas->Print("test.pdf("); canvas->Print("test.pdf"); canvas->Print("test.pdf)"); }
{ TGaxis *a = new TGaxis(0.2,0.5,0.8,0.5,0.2,3.5,510,"G"); a->SetMoreLogLabels(1); a->Draw(); TGaxis *b = new TGaxis(0.8,0.7,0.2,0.7,0.2,3.5,510,"G"); b->SetMoreLogLabels(1); b->Draw(); }