# Labels dropping off using CanvasPartition

**URL:** <https://root-forum.cern.ch/t/labels-dropping-off-using-canvaspartition/26097>\
**Category:** ROOT\
**Created:** [September 4, 2017, 11:56am UTC](https://root-forum.cern.ch/t/labels-dropping-off-using-canvaspartition/26097 "2017-09-04T11:56:25Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [September 6, 2017, 8:39am UTC](https://root-forum.cern.ch/t/labels-dropping-off-using-canvaspartition/26097/5 "2017-09-06T08:39:14Z")

</div>

The first label is cut off because it is clipped on the Pad edge. In the new `TRatioPlot` class we solved this issue by removing the labels on edges using the new method [ChangeLabel](https://root.cern/doc/master/classTGaxis.html#a8ef5ba035d846add3902cd714336eaac) .

The following macro is a modified version of canvas2.C doing this trick.

[canvas3.C](https://root-forum.cern.ch/uploads/default/original/2X/0/0179ac9b1a9214b46ed80cc48d18d66c615c1b1b.C) (5.1 KB)

Note that ChangeLabel can do mush more than simply removing a Label.

---

_[View the full topic](https://root-forum.cern.ch/t/labels-dropping-off-using-canvaspartition/26097)._
