Hello Rooters, I am using some histograms with Fit results, and I was trying to modify the size of the stat box with the TStyle class: TStyle *Style=new TStyle("MyStyle","MyStyle"); Style->SetStatH(0.15); Style->SetStatW(0.85); Style->SetOptFit(1); CCanvas->UseCurrentStyle(); CCanvas->Modified(); CCanvas->Update(); The height of the stat box is properly modified, but not the width (it's set to the height of the box) I took a look at the source code of TH1, and I saw: Float_t statw = gStyle->GetStatW(); if (fit) statw = 1.8*gStyle->GetStatH(); Float_t stath = 0.25*nlines*gStyle->GetStatH(); if (fit) stath += gStyle->GetStatH(); So there seems to me that the in the case of fit data, the stat box is sized according to the given height but not to the given width. Am I wrong, and is there a way to set the width of the box? Thank you for your help. Mathieu ----------------------------------------------- Mathieu de Naurois LPNHE Ecole Polytechnique email: denauroi@in2p3.fr
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET