Re: [ROOT] TH1 refuse any draw option after a call to Sumw2

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Mar 20 2001 - 13:53:35 MET


Hi Yannick,

use h->Draw("hist") to draw the histogram contour only.
See documentation of all options in
THistPainter::Draw

Rene Brun



On Tue, 20 Mar 2001, Patois Yannick wrote:

> Hi rooters,
> 
> If I compute the errors on any TH1 histogram, then I cannot any more
> choose how to plot it. It *always* plot with option "E" whatever I do.
> 
> eg:
> {
>   TH1F *h=new TH1F("h1","h1",10,0,100);
>   for (int ix=0;ix<100;ix++)
>     h->Fill(ix,sqrt(ix));
>   
>   h->Sumw2();
>   h->Draw("L"); // Will do h->Draw("E");
> }
> 
> Is that an error or a feature ?
> 
> 	Yannick
> 
> VERSION: ROOT version 3.00.05 on linux-ix86
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:40 MET