Hi Matej,
I already had this problem: to generate the stat box, you have to 'force' the drawing.
hist->Draw();
and then
gPad->Update();
After this last instruction, you should have access to the 'stats' box.
Cheers,
Nicolas
--On jeudi 19 février 2004 14:17 +0100 matej batic <matej.batic1@guest.arnes.si> wrote:
> Using
> TPaveStats *s = (TPaveStats*) gPad->GetPrimitive("stats");
> s->SetX1NDC(0.5);
> s->SetY1NDC(0.5);
> ...
> I get
> Error: illegal pointer to class object s 0x0 227 *** Interpreter error recovered ***
>
> I am using ROOT v 3.10/02 with gcc3.3.2 on RH
>
> Do you have any ideas?
>
> --
> ----
> Matej Batic
> -----------------
>
==========================================
= Nicolas Arnaud =
= BaBaR Group =
= Tel: + 33 1 64 46 83 20 =
= Fax: + 33 1 64 46 85 46 =
= Laboratoire de l'Accelerateur Lineaire =
= Universite Paris Sud =
= Batiment 200 - BP 34 =
= 91898 Orsay cedex - France =
==========================================
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:06 MET