Re: [ROOT] Stat box overflow/underflow

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Aug 16 2002 - 22:24:49 MEST


Hi,

Replace the line by:
 gStyle->SetOptStat(0111100);
by
 gStyle->SetOptStat(111100);

Coincidence. Today, I had a remark about the trailing 0 and added
additional comments in the doc:

// Statistics Display
// ======================================
// The type of information shown in the histogram statistics box
//  can be selected with gStyle->SetOptStat(mode).
//
//  The mode has up to seven digits that can be set to on(1) or off(0).
//
//  mode = iourmen  (default = 0001111)
//    n = 1;  name of histogram is printed
//    e = 1;  number of entries printed
//    m = 1;  mean value printed
//    r = 1;  rms printed
//    u = 1;  number of underflows printed
//    o = 1;  number of overflows printed
//    i = 1;  integral of bins printed
//
// For example: gStyle->SetOptStat(11);
// displays only the name of histogram and the number of entries.
// For example: gStyle->SetOptStat(1101); 
// displays the name of histogram, mean value and RMS.
// WARNING: never call SetOptStat(000111); but SetOptStat(1111), 0001111
// will  be taken as an octal number !!
//


Rene Brun

On Fri, 16 Aug 2002 jpmarott@email.arizona.edu wrote:

> Oh, I'm sorry... I'm using ROOT version 3.02 on Redhat Linux 7.2.  A simple
> example would be:
> gStyle->SetStatW(0.3);
> gStyle->SetStatH(0.3);
> gStyle->SetStatFontSize(1.0);
> gStyle->SetOptStat(0111100);
> gROOT->ForceStyle();
> h1->Draw();
> 
> Something like that.
> Thanks,
> Joe
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET