Hello,
I have two problems with root.
Problem 1:
I want to display an histogram with just its name in the stat box. According to
the manual, I should be able to do that with:
gStyle->SetOptStat(1);
but the stat box still displays, in addition to the name, Entries, Mean and
RMS.
Note that this problem is specific to the value 1 as an argument (with 0, 10,
11, and so on, it works as expected).
Problem 2:
I want to use TPaveStats to chose the position of the stat box of an histogram,
ie:
h->Draw();
TPaveStats *st = (TPaveStats*)h->GetListOfFunctions()->FindObject("stats");
st->SetX1NDC(0.6) ; st->SetX2NDC(0.9) ; st->SetY1NDC(0.6) ; st->SetY2NDC(0.9);
At the command line, it works, but inside a macro, I get the following message:
Error: illegal pointer to class object st 0x0 219 FILE:detptstudy.C LINE:154
*** Interpreter error recovered ***
I'm using root 3.05/07 for gcc 2.95.2 on RedHat Linux 7.2.
Thanks for help.
--
Best regards,
Bernard Andrieu
-----------------------------------------------------------------------
("-/")_.-'"-._
LPNHE, 4 pl. Jussieu . . ; -._ )-;-,_) email: andrieu@in2p3.fr
Tour 33, RdC (v_,)' _ )-.\ -' Tel: +33 (0)1 4427 2321
75252 PARIS CEDEX 05 _.- _..-_/ / ((.' Fax: +33 (0)1 4427 4638
((,.-' ((,/
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET