# How can the minimum visible histogram axis tickmark be set?

**URL:** <https://root-forum.cern.ch/t/how-can-the-minimum-visible-histogram-axis-tickmark-be-set/19123>\
**Category:** ROOT\
**Created:** [April 17, 2015, 12:47pm UTC](https://root-forum.cern.ch/t/how-can-the-minimum-visible-histogram-axis-tickmark-be-set/19123 "2015-04-17T12:47:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wdbm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f17d59/32.png) [@wdbm](https://root-forum.cern.ch/u/wdbm)\
**Post date:** [April 17, 2015, 12:47pm UTC](https://root-forum.cern.ch/t/how-can-the-minimum-visible-histogram-axis-tickmark-be-set/19123/1 "2015-04-17T12:47:13Z")

</div>

How can the minimum visible tickmark of a histogram axis be set? A TGaxis object has the function SetWmin, but I’m not sure about the functionality for a TAxis.

For context, I’ve got one pad that has multiple histograms overlaid and another pad below that has a ratio plot. The lowest tickmark number of the overlaid histograms gets obscured partially by the ratio plot. I want to remove this lowest tickmark number.

![](http://i.imgur.com/HAbuu4P.png)

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 17, 2015, 1:16pm UTC](https://root-forum.cern.ch/t/how-can-the-minimum-visible-histogram-axis-tickmark-be-set/19123/2 "2015-04-17T13:16:58Z")

</div>

[[Axis labels overlapped by pad](https://root-forum.cern.ch/t/axis-labels-overlapped-by-pad/6920/1)  
[[Ratio plot](https://root-forum.cern.ch/t/ratio-plot/9439/1)  
[[Two Histograms Sharing Same X-Axis](https://root-forum.cern.ch/t/two-histograms-sharing-same-x-axis/13494/1)

---

<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:** [April 17, 2015, 1:49pm UTC](https://root-forum.cern.ch/t/how-can-the-minimum-visible-histogram-axis-tickmark-be-set/19123/3 "2015-04-17T13:49:58Z")

</div>

Making the bottom pad transparent is surely the easiest (as said here):  
[root.cern.ch/root/html/src/THis … .html#9232](https://root.cern.ch/root/html/src/THistPainter.cxx.html#9232)

---

<div class="post-metadata">

**Author:** ![wdbm](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/w/f17d59/32.png) [@wdbm](https://root-forum.cern.ch/u/wdbm)\
**Post date:** [April 20, 2015, 9:07am UTC](https://root-forum.cern.ch/t/how-can-the-minimum-visible-histogram-axis-tickmark-be-set/19123/4 "2015-04-20T09:07:10Z")

</div>

Thanks for the suggestions. It seems to be an awkward problem. The best solution I’ve got now (though not a perfect one) is to make the lower pad transparent, which I am doing in the following way:

`pad2.SetFillStyle(4000)
pad2.SetFillColor(0)
pad2.SetFrameFillStyle(4000)`

This approach was prompted by the following information:

[https://root.cern.ch/root/roottalk/roottalk02/2201.html](https://root.cern.ch/root/roottalk/roottalk02/2201.html)  
[https://root.cern.ch/root/roottalk/roottalk02/att-2201/01-g2a.C](https://root.cern.ch/root/roottalk/roottalk02/att-2201/01-g2a.C)
