Clip histogram line

Hello,

I would like to clip a TH1F histogram and only draw (say) bins 30 to 80. Is it possible? In particular, I would like to avoid having dangling vertical lines at the clipping limits ends. The attached plot (made with gle-graphics) illustrates the effect that I am trying to achieve.

Regards,
Davide
ddxs.pdf (4.28 KB)

See, for example, [url]SetAxisRange(0.0,1.0,“Y”); is ineffective and [url]Drawing a TGraphAsymmErrors
and search for “][” in http://root.cern.ch/root/html/THistPainter.html

Thanks! That’s just what I was looking for.

Regards,
Davide

You might also be interested in http://root.cern.ch/root/html/THStack.html (note the “NOSTACK” drawing option).

grep -r THStack ${ROOTSYS}/tutorials