Try
TFile f("hsimple.root");
gStyle->SetStatX(.3); gStyle->SetStatW(.1); gStyle->SetOptStat(11);
On 4/11/11 5:33 PM, "rino lanzi" <supericarus_at_yahoo.it> wrote:
>Hi,
>
>I am plotting an histogram with the COLZ option and I would like to move
>the
>stat box from the color band where it is placed as default. I am doing
>this
>indie my macro:
>
>
>TPaveStats *p2 =
>(TPaveStats*)
>((TH2F*)gPad->GetPrimitive("histo")->GetListOfFunctions()->FindObject("sta
>ts");
>
>((TH2F*)gPad->GetPrimitive("histo")->GetListOfFunctions()->Remove(p2);
>((TH2F*)gPad->GetPrimitive("histo")->SetStats(0);
>p2->SetX1NDC(0.58);
>p2->SetX2NDC(0.78);
>p2->SetY1NDC(0.78);
>p2->SetY2NDC(0.98);
>p2->SetOptStat(11);
>
>This moves the statbox but the command SetOptStat(11) (to have only title
>and
>entries) does not work.
>I do want the statbox of other plot to keep having differnt options so I
>am
>trying to avoid to use
>gStyle->SetOptStat(11);
>
>regards
>
>Luca
>
Received on Mon Apr 11 2011 - 17:52:50 CEST
This archive was generated by hypermail 2.2.0 : Mon Apr 11 2011 - 23:50:01 CEST