# SetTitleOffset for histogram titles

**URL:** <https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553>\
**Category:** Newbie\
**Created:** [June 5, 2024, 1:31pm UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553 "2024-06-05T13:31:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gorsedh](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gorsedh/32/25831_2.png) [@gorsedh](https://root-forum.cern.ch/u/gorsedh)\
**Post date:** [June 5, 2024, 1:31pm UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553/1 "2024-06-05T13:31:48Z")

</div>

![image](https://root-forum.cern.ch/uploads/default/original/3X/8/7/87ed0b49e042c74ed8fafc7c3d705cd6a6caa261.png)

Hello, I have a canvas divided in 9 and i have 9 histograms to put inside. I’m having some issues in drawing some titles because they hit the pads with histograms inside. Is there a way to an offset? Possibly without moving the pads so that all the 9 histogram pads remain aligned.  
Thanks for the help!

---

<div class="post-metadata">

**Author:** ![mdessole](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mdessole/32/34021_2.png) [@mdessole](https://root-forum.cern.ch/u/mdessole)\
**Post date:** [June 5, 2024, 2:12pm UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553/2 "2024-06-05T14:12:35Z")

</div>

Hi @gorsedh,  
thanks for reaching out!  
I add in the loop @couet as I think he may help.

Cheers,  
Monica

---

<div class="post-metadata">

**Author:** ![mdessole](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/mdessole/32/34021_2.png) [@mdessole](https://root-forum.cern.ch/u/mdessole)\
**Post date:** [June 5, 2024, 2:17pm UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553/3 "2024-06-05T14:17:14Z")

</div>

Also, you may want to take a look at [this old post](https://root-forum.cern.ch/t/set-histo-title-offset/58869)

---

<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:** [June 6, 2024, 6:40am UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553/4 "2024-06-06T06:40:04Z")

</div>

```auto
gStyle->SetTitleY(...);

```

---

<div class="post-metadata">

**Author:** ![gorsedh](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/gorsedh/32/25831_2.png) [@gorsedh](https://root-forum.cern.ch/u/gorsedh)\
**Post date:** [June 7, 2024, 1:29pm UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553/5 "2024-06-07T13:29:44Z")

</div>

This somewhat does the trick but now i’m hitting the top boarder and superscripts get cut away

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/e/7/e746b3927c288914d5ffa8610b03fb3b322d1ca2.png)  
I would like avoiding resizing the title, they may become too small for my purposes. Any idea?

---

<div class="post-metadata">

**Author:** ![linev](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/2bfe46/32.png) [@linev](https://root-forum.cern.ch/u/linev)\
**Post date:** [June 7, 2024, 1:50pm UTC](https://root-forum.cern.ch/t/settitleoffset-for-histogram-titles/59553/6 "2024-06-07T13:50:25Z")

</div>

Instead of moving title, you can change:

```auto
gStyle->SetPadTopMargin(0.15);

```
