I want to draw four histograms on the same page. Canvas is setting in this way:
TCanvas *c = new TCanvas(“c”, “fill in the plots”, 0, 0, 600, 800);
c->Divide(2,2);
When I draw the plots in the following way and found I can’t modify the offset between title and Yaxis successfully… I can’t enlarge the distance between them even I set SetTitleOffset to be 1.4… If It’s too large, some part of the Title can’t display. It looks I can’t zoom the histogram size freely…
h1->SetTitle(“1st particle”);
h1->GetYaxis()->SetTitle(“Entries/(20 MeV)”);
h1->GetYaxis()->SetTitleOffset(1.4);
h1->GetXaxis()->SetTitle(“MeV”);