# Cropped y-axis label

**URL:** <https://root-forum.cern.ch/t/cropped-y-axis-label/63197>\
**Category:** Newbie\
**Created:** [March 24, 2025, 11:27am UTC](https://root-forum.cern.ch/t/cropped-y-axis-label/63197 "2025-03-24T11:27:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![phylmath](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/phylmath/32/38400_2.png) [@phylmath](https://root-forum.cern.ch/u/phylmath)\
**Post date:** [March 24, 2025, 11:27am UTC](https://root-forum.cern.ch/t/cropped-y-axis-label/63197/1 "2025-03-24T11:27:07Z")

</div>

_ROOT Version:_ 6.32.04  
_Platform:_ WSL2 Ubuntu

Hello! I want to prevent the y-axis label from being cropped. How can I do this?

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

Thanks in advance! Cheers.

---

<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:** [March 24, 2025, 12:01pm UTC](https://root-forum.cern.ch/t/cropped-y-axis-label/63197/2 "2025-03-24T12:01:21Z")

</div>

Depending on where/how you are drawing that, try adding this to your macro (before drawing the histogram):

```auto
gPad->SetLeftMargin(0.1);

```

(play around with the number, keeping it under 0.2 in general, but can be between 0 and 1), or

```auto
c->SetLeftMargin(0.1);

```

where `c` is a pointer to your canvas (so use the appropriate name for your own macro).

---

<div class="post-metadata">

**Author:** ![phylmath](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/phylmath/32/38400_2.png) [@phylmath](https://root-forum.cern.ch/u/phylmath)\
**Post date:** [March 24, 2025, 12:07pm UTC](https://root-forum.cern.ch/t/cropped-y-axis-label/63197/3 "2025-03-24T12:07:20Z")

</div>

Works, thank you!

```auto
c->Divide(2,1);
c->cd(1)->SetLeftMargin(0.15);
c->cd(2)->SetLeftMargin(0.15);

```
