# Axis blocked when overlaying two histograms

**URL:** <https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326>\
**Category:** ROOT\
**Created:** [June 27, 2017, 1:58pm UTC](https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326 "2017-06-27T13:58:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![czczc](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/czczc/32/13119_2.png) [@czczc](https://root-forum.cern.ch/u/czczc)\
**Post date:** [June 27, 2017, 1:58pm UTC](https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326/1 "2017-06-27T13:58:03Z")

</div>

Hi everyone,

I encountered a strange ROOT 6.08 bug, which you may reproduce with the scripts and files attached. After drawing, you will find that the x-axis is somehow blocked and one cannot zoom on it. The same script runs fine in ROOT 5, so this is a new “feature” in ROOT 6. It appears that it happens when one tries to overlay two 1D histograms with many non-empty bins, but I cannot always reproduce it with other histograms. I’m wondering if anyone has any clue why this is happening?

Thanks.

[plot.C](https://root-forum.cern.ch/uploads/default/original/2X/5/50579b8d4abde9fd369ad39a8856bc709d5f4122.C) (159 Bytes)  
[hist.root](https://root-forum.cern.ch/uploads/default/original/2X/5/5277cf4abdbbe22b4fb8d3e28af155842b487dbc.root) (39.2 KB)

---

<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:** [June 27, 2017, 2:38pm UTC](https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326/2 "2017-06-27T14:38:36Z")

</div>

Yes this is weird … .the X axis is invisible for the GUI in that cas…

---

<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:** [June 28, 2017, 8:11am UTC](https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326/3 "2017-06-28T08:11:42Z")

</div>

Thanks to have seen this problem. It is now fixed in the ROOT master.

---

<div class="post-metadata">

**Author:** ![czczc](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/czczc/32/13119_2.png) [@czczc](https://root-forum.cern.ch/u/czczc)\
**Post date:** [June 28, 2017, 1:58pm UTC](https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326/4 "2017-06-28T13:58:52Z")

</div>

Thanks so much for fixing it.

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [July 12, 2017, 2:02pm UTC](https://root-forum.cern.ch/t/axis-blocked-when-overlaying-two-histograms/25326/5 "2017-07-12T14:02:40Z")

</div>

Closed on July 12, 2017, 2:02pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
