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("stats");
((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:33:21 CEST
This archive was generated by hypermail 2.2.0 : Mon Apr 11 2011 - 23:50:01 CEST