Dear ROOTers,
I use ROOT 5.24/00 (trunk@29257, Jun 30 2009, 09:23:51 on macosx)
with gcc version 4.0.1 (Apple Inc. build 5465) on MacOS X 10.5.8 (Intel)
Two labels with different size are drawn using THStack, while
such a case were not observed with ROOT 5.22.
An example macro is following, and an attached file
is an output of the macro.
Could you give me any idea ?
Thanks
Harufumi
void HStack_test() {
TH1F *hgaus1 = new TH1F("Hgaus1", "", 100, -10, 10);
TH1F *hgaus2 = new TH1F("Hgaus2", "", 100, -20, 20);
hgaus1->SetMarkerSize(1.0); hgaus1->SetMarkerStyle(20);
hgaus2->SetMarkerSize(1.0); hgaus2->SetMarkerStyle(24);
THStack *hst = new THStack();
hgaus1->FillRandom("gaus", 30000); hgaus2->FillRandom("gaus", 30000);
hst->Add(hgaus1, "ep"); hst->Add(hgaus2, "ep");
hst->Draw("nostack");
hst->GetHistogram()->SetXTitle("X");
hst->GetHistogram()->SetYTitle("Y");
hst->GetHistogram()->SetLabelSize(0.07, "xy");
}