# X- axis label Orientation

**URL:** <https://root-forum.cern.ch/t/x-axis-label-orientation/50784>\
**Category:** Newbie\
**Created:** [July 13, 2022, 2:15pm UTC](https://root-forum.cern.ch/t/x-axis-label-orientation/50784 "2022-07-13T14:15:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/roy/32/30362_2.png) [@Roy](https://root-forum.cern.ch/u/Roy)\
**Post date:** [July 13, 2022, 2:15pm UTC](https://root-forum.cern.ch/t/x-axis-label-orientation/50784/1 "2022-07-13T14:15:49Z")

</div>

I have been looking to change the label orientation on X-axis. Is there any way to do so?  
If not, the data label of X-axis is too large and unclear. Is there any way to fix that?

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [July 13, 2022, 5:28pm UTC](https://root-forum.cern.ch/t/x-axis-label-orientation/50784/2 "2022-07-13T17:28:54Z")

</div>

You can use TGaxis::ChangeLabel:  
[https://root.cern/doc/master/classTGaxis.html#a8ef5ba035d846add3902cd714336eaac](https://root.cern/doc/master/classTGaxis.html#a8ef5ba035d846add3902cd714336eaac)  
e.g. if it’s a histogram: `h->GetXaxis()->ChangeLabel(...`

---

<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:** [July 20, 2022, 2:13pm UTC](https://root-forum.cern.ch/t/x-axis-label-orientation/50784/3 "2022-07-20T14:13:31Z")

</div>

See also [this example](https://root.cern/doc/master/classTGaxis.html#GA10a).
