# TLatex text overflowing histogram border

**URL:** <https://root-forum.cern.ch/t/tlatex-text-overflowing-histogram-border/58548>\
**Category:** Newbie\
**Tags:** root\
**Created:** [March 15, 2024, 7:29am UTC](https://root-forum.cern.ch/t/tlatex-text-overflowing-histogram-border/58548 "2024-03-15T07:29:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Shiva\_Prasad\_Nayak](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/shiva_prasad_nayak/32/36391_2.png) [@Shiva\_Prasad\_Nayak](https://root-forum.cern.ch/u/Shiva_Prasad_Nayak)\
**Post date:** [March 15, 2024, 2:08pm UTC](https://root-forum.cern.ch/t/tlatex-text-overflowing-histogram-border/58548/8 "2024-03-15T14:08:38Z")

</div>

If I understand you correctly (and correct me if I’m mistaken) you want some space between y axis maxima and peak of histogram. You can do so by adding this to your macro.

> ```
> histogram->GetYaxis()->SetRangeUser(0,700);
> 
> ```

For better understanding read [this](https://root-forum.cern.ch/t/how-to-set-ranges-on-axis/28254).

---

_[View the full topic](https://root-forum.cern.ch/t/tlatex-text-overflowing-histogram-border/58548)._
