On Mon, 16 Oct 2000, GENTIT Francois-Xavier DAPNIA wrote:
> Dear Rooters,
> How to have an histogram printed with a stat box written with a given Font
> and a given Font size ? I know how to do it with the right button of the
> mouse, opening "SetTextAttributes". But how to do it in CINT, before
> printing the histogram ? I have tried :
>
> gStyle->SetTextFont(22);
> gStyle->SetTextSize(0.02);
> h1 = new TH1F("....
> h1->Draw();
You have the methods :
TStyle::
void SetStatBorderSize(Width_t size = 2)
void SetStatColor(Int_t color = 19)
void SetStatFont(Style_t font = 62)
void SetStatFormat(const char* format = 6.4g)
void SetStatH(Float_t h = 0.1)
void SetStatStyle(Style_t style = 1001)
void SetStatTextColor(Int_t color = 1)
void SetStatW(Float_t w = 0.19)
void SetStatX(Float_t x = 0)
void SetStatY(Float_t y = 0)
See http://root.cern.ch/root/html225/TStyle.html
Hope it helps,
Yannick
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:35 MET