THStack: draw option "nostackb" not working

This topic might sound silly - but it has kept me occupied for a fair amount of time now. So far I’ve not been able to find a solution for this simple problem.

{
THStack *hs = new THStack(“hs”,"");
TH1F *h1 = new TH1F(“h1”,“test hstack”,10,-4,4);
h1->FillRandom(“gaus”,20000);
h1->SetFillColor(kRed);
hs->Add(h1);
TH1F *h2 = new TH1F(“h2”,“test hstack”,10,-4,4);
h2->FillRandom(“gaus”,15000);
h2->SetFillColor(kBlue);
hs->Add(h2);
TH1F *h3 = new TH1F(“h3”,“test hstack”,10,-4,4);
h3->FillRandom(“gaus”,10000);
h3->SetFillColor(kGreen);
hs->Add(h3);
TCanvas *cs = new TCanvas(“cs”,“cs”,10,10,700,900);
TText T; T.SetTextFont(42); T.SetTextAlign(21);
cs->Divide(2,2);
cs->cd(1); hs->Draw(); T.DrawTextNDC(.5,.95,“Default drawing option”);
cs->cd(2); hs->Draw(“nostack”); T.DrawTextNDC(.5,.95,“Option “nostack””);
cs->cd(3); hs->Draw(“nostackb”); T.DrawTextNDC(.5,.95,“Option “nostackb””);
cs->cd(4); hs->Draw(“lego1”); T.DrawTextNDC(.5,.95,"Option “lego1"”);
return cs;
}

When executing the above macro (found on root.cern.ch/doc/master/classTHStack.html) I’m getting the result which is attached as a PNG file to this post. In the attached plot there is no difference between the THStack drawing options “nostack” and “nostackb” visible (other than the marker colour).

What could be the potentially simple reason for the ROOT behaviour? What can I do to recover?

Thanks,
Rene.

Technical details:
ROOT version: Version 5.34/07 26 April 2013 (no option to update really)
Linux:

It might be that you have a version of ROOT too old because it is working with the master as you can see here:

root.cern/doc/master/classTHStack.html

Note that the images shown in the reference guide are generated every night by running the macros presented as examples.

Thank you for your quick (and somehow expected) response.

What exactly do you mean by a “too old” ROOT version? Can you point me to release notes of a certain ROOT version that show a particular bug fix for the THStack drawing behaviour?

Rene

It appeared in the 6.04 release notes:

root.cern.ch/doc/v604/release-notes.html