Horizontal position of the x-axis title

I created a canvas and divided it into three parts .
TCanvas *canvas = new TCanvas(“canvas”, “Distributions”, 600, 600);
canvas->Divide(1, 3, 0, 0);
I also impose no gap between divisions. Now I am not getting enough space to label the x axis. X axis title of the bottom pad going out of the canvas.
I tried
canvas->cd(i + 1);
if (i == 3) {
gPad->SetBottomMargin(0.2); } but not working.

Hi @iamaanand,

Could you please post a minimal but complete reproducer? I’m sure @couet can help here :-).

Cheers,
J.

Can you post a little running script showing the problem you encounter?