# Horizontal position of the x-axis title

**URL:** <https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040>\
**Category:** Newbie\
**Tags:** root\
**Created:** [August 15, 2023, 6:52pm UTC](https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040 "2023-08-15T18:52:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamaanand](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/i/9d8465/32.png) [@iamaanand](https://root-forum.cern.ch/u/iamaanand)\
**Post date:** [August 15, 2023, 6:52pm UTC](https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040/1 "2023-08-15T18:52:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [August 15, 2023, 7:34pm UTC](https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040/2 "2023-08-15T19:34:15Z")

</div>

Hi @iamaanand,

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

Cheers,  
J.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [August 16, 2023, 9:20am UTC](https://root-forum.cern.ch/t/horizontal-position-of-the-x-axis-title/56040/3 "2023-08-16T09:20:04Z")

</div>

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