Re: [ROOT] Sticky Stat box problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jul 19 2003 - 18:00:54 MEST


Hi Tania,

Once the "stats" box has been drawn once, the TPaveStats object
is added to the histogram list of functions.
When redrawing the histogram, the stats box is always drawn
even if gStyle->SetOptStats(0) has been called.
You have to call hist->SetStats(0).
I will fix this problem.

Rene Brun

On Fri, 18 
Jul 2003, Tania Moulik wrote:

> Hello,
>     I am trying to draw some histograms with no stat window.
> I have saved these histograms in a file. Now I do
> gStyle->SetOptStat(0);
> hist1->Draw();
> hist2->Draw("SAME");
> c1->UseCurrentStyle();
> 
> But it always draws the stat box. Any clue to why this could be
> happening? I thought optStat(0) would mean the stat box wont
> be drawn.
> 
> Thanks,
> Tania.
> 
> 



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