Re: [ROOT] Problems with TPaveStats

From: Otto Schaile (Otto.Schaile@Physik.uni-muenchen.de)
Date: Wed Nov 08 2000 - 16:52:15 MET


On Wed, 8 Nov 2000, Paolo MAESTRO wrote:

> Hello rooters
> 
> I try to get the stat box in a pad in order to change the Line Attributes
> 
> with the following commands (c1_1 is my pad) in a macro:
> 
> TPaveStats *stats = (TPaveStats*) c1_1->GetPrimitive("stats");
> stats->SetLineColor(9);
> 
> and this is the error I obtain
> 
> Error: illegal pointer to class object stats 0x0 88
> 

Hi Paolo,

seems your Pad (c1_1) has no TPaveStats when you execute this line
Did your Draw() your histogram and update your Pad before doing that?

In doubt send me (not to roottalk) your (hopefully short) macro.
Cheers
Otto

 Otto Schaile            Sektion Physik, LMU Muenchen
Phone: +49 89 289 14070     Am Coulombwall 1, D-85748 Garching, Germany
GSM:   +49 171 4312031
FAX:   +49 89 289 14072     EMail: Otto.Schaile@Physik.Uni-Muenchen.DE



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:36 MET