Hi Rene: I try: root [0] TH1F h1("h1","histo from a gaussian",100,-3,3); root [1] h1.FillRandom("gaus",1000); root [2] h1.Draw(); <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 root [3] gStyle->GetStatFontSize() (const Float_t)0.00000000000000000e+00 root [4] gStyle->SetStatFontSize(.2) root [5] h1.Draw(); root [6] h1.SetStats(0) root [7] h1.Draw(); // the statistics box is gone !!! root [8] gStyle->GetStatFontSize() (const Float_t)2.00000002980232239e-01 root [9] h1.SetStats(1) root [10] h1.Draw(); // statistics box appears again but unchanged!!! -thanks for looking into this, regards, Swagato On Thu, 17 Jul 2003, Rene Brun wrote: > Hi Swagato, > > h1.Draw creates a TPaveStats object using the attributes in the current > style. Next time you call h1.Draw, the already created TPaveStats > is only repaint with the current histogram properties. > In your case, you should force the TPaveStats to be created again, eg > by calling h1.SetStats(0) before calling again h1.Draw(). > > Rene Brun > > On > Thu, > 17 Jul 2003, Swagato Banerjee wrote: > > > Hi Rene: > > On a machine running > > Red Hat Linux release 7.2 (Enigma) 2.4.18-27.7.xsmp (2x1390MHz Intel) > > using > > ROOT (Version 3.05/05 5 June 2003 ) > > I try > > root [0] TH1F h1("h1","histo from a gaussian",100,-3,3); > > root [1] h1.FillRandom("gaus",1000); > > root [2] h1.Draw(); > > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > > root [3] gStyle->SetStatFontSize(0.02); > > root [4] h1.Draw(); > > root [5] gStyle->SetStatFontSize(0.08); > > root [6] h1.Draw(); > > root [7] gStyle->SetStatFontSize(0.16); > > root [8] h1.Draw(); > > root [9] gStyle->SetStatFontSize(0.20); > > root [10] h1.Draw(); > > > > The statistics box size or text size doesnt change! > > Did i miss something obvious? > > -regards, > > Swagato > > > > > > On Thu, 17 Jul 2003, Rene Brun wrote: > > > > > Hi Swagato, > > > > > > Use TStyle::SetStatFontSize, eg > > > gStyle->SetStatFontSize(0.08); > > > > > > Rene Brun > > > > > > Swagato Banerjee wrote: > > > > > > > > Hi: > > > > > > > > In paw, one could do "set csiz 0.5" to increase the size of the statistics > > > > box drawn for a histogram with "opt stat". > > > > > > > > Is there an equivalent command in root? > > > > > > > > -thanks, Swagato > > > > > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:13 MET