Hi Angela, Thanks for reporting this problem. Now fixed in CVS. As a workaround, you can: - either set the gStyle options after having created the histogram - or call h->ResetBit(TH1::kNoStats); Rene Brun Angela Biselli wrote: > > Dear rooters, > I am having a problem with gStyle in the 3.05 root versions (both v3.05.03 > v3.05.02). If I remove the Stat Box (gStyle->SetOptStat(0);) > and set the Fit option (gStyle->SetOptFit(111);) I do not get the Fit Box > For example > root [0] gStyle->SetOptStat(0); > root [1] gStyle->SetOptFit(111); > root [2] TH1F *h=new TH1F("h","h",10,0,10); > root [3] h->Fill(2); > root [4] h->Fit("gaus"); > > If I do not remove the stat box, I get the fit box as expected. > Can anybody reproduce this problem? Are the two option SetOptStat > SetOptFit related to each other? > It used to work in older root version (i.e. 3.04.02) > > Thanks Angela
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET