[ROOT] TH1: Draw horizontal error bars for zero-entry bins?

From: Nathan Goldschmidt (njg@fnal.gov)
Date: Tue Nov 11 2003 - 06:02:27 MET


Is there an easy way to -not- draw horizontal error bars for bins with 
zero entries? (I'm talkin' TH1 here.) The (aesthetic) problem is 
illustrated in the macro below.

  {
   TH1F* h = new TH1F("h","h", 10, 0., 100.);

   for (Int_t i = 0 ; i < 50; ++i ) {

     for (Int_t j = 0 ; j < i ; ++j) {

       h->Fill(10 + j);
     }

   }
   h->SetMinimum(-50.);
   h->Sumw2();
   h->Draw();
}

Thanks for your help.

-N



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET