Trouble with THStack SetMinimum()/SetMaximum


I create a THStack, and then I use SetMinimum and SetMaximum to set the Y range.

In the plot below, I set the minimum and maximum to 1600 and 2200.

Something very odd appears:

It just fills the histogram up to 1600 with blue, instead of zooming into that area. Those white bands you see every 50 bins are two empty bins each, so the white bands should reach all the way to the x-axis.

What could be causing this?

I’m using ATLAS version of ROOT 2.22. Is this a bug fixed in later releases?



Please note that we can not download your picture/graph as your link is on a site that is available only to Atlas members.


Do you have:


in your macro or in rootlogon.C ?