[ROOT] THStack "nostack" bug

From: Maksim A. Nikulin (M.A.Nikulin@inp.nsk.su)
Date: Thu Nov 07 2002 - 11:14:34 MET


Hi,

I noticed TH1 and THStack draw options mixing in ROOT (for example
3.03.09). Histograms appear as curves when I use THStack::Draw() with the
"nostack" option. As I understand this happens because of THStack pass
"nostack" to TH1, histograms see "c" option and draw curves. The script
bug_THStack.C in the attachment demonstrates this behaviour.

I slightly changed THStack.cxx and have seen normal rectangles. The patch
is also in the attachment. Use
patch -p1 < THStack.cxx.patch
from the top directory of the ROOT source.

Maksim Nikulin <M.A.Nikulin@inp.nsk.su>







This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:16 MET