Hi,
As I see the drawing option for histogram depend from style of filling.
Please, look to the result of next macro:
//---------------------------------------------------------------------------------------------
class TH1F; TH1F *hid1=0, *hid2=0;
void testh()
{
hid1 = new TH1F("hid1"," id1 ", 10, 0.5, 10.5);
hid2 = new TH1F("hid2"," id2 ", 10, 0.5, 10.5);
for(Int_t i=1; i<=10; i++) {
hid1->Fill(i, 2.*i);
hid1->SetBinError(i, 0.2*i);
hid2->Fill(i, 1.*i);
// hid2->SetBinError(i, 0.1*i);
}
hid1->Draw("c");
hid2->SetLineColor(2);
hid2->Draw("c same");
}
//---------------------------------------------------------------------------------------------
Option "c" has effect for hid2 but not for hid1.
Is this right behavior?
Regards,
Aleksei.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET