I was trying to enlarge the labels of the X axis of some plots
frame->GetXaxis()->SetLabelWidth(0.08)
but unfortunately the labels are cut by the Pad limit.
I tried enlarging the Pad bottom margin
mypad->SetBottomMargin(1);
but even if I set it to the maximum value (1), the labels are cut the pad.
I can manage to fix this by reducing the histogram height, using the mouse
and then dragging the histogram up.
With reduced histogram height, labels can fit inside the Pad.
However I’d like to do this inside my macro and not “by hand”.
May you please point me to the relevant methods to be used?
Once you have done the right changes using the mouse, save the Canvas as a .C file from the menu File->Save->canvasname.C
Then you can take in the macro canvasname.C the settings you like.
I already tried this, I noticed that the method used in the canvasname.C to move the pad is Range()
However I cannot reproduce this in my macro.
Using canvasname.C to replot the figure is quite unpractical since I read histograms from file,
while canvasname.C fill them as points.