Re: [ROOT] TPave OVER TGRaph

From: Valeri Fine (fine@bnl.gov)
Date: Wed Dec 05 2001 - 14:28:10 MET


> I just cant find documentation on the Z order of
> objects !

The object is painted by TPad class object in the order of these
object have been added to this TPad.

For example If you want some TPaveLabel to be painted  OVER TGraph you show 
call Draw method of TGraph  first then TPaveLabel and make sure
the current gPad remians the same.

You may try to use graph.C tutorials example and then use 
"Edit" -> "Editor" -"PaveLabel" to put the TPavelLAbel over your graph.
Afterwards one may apply "Save As" root macro option to get the ROOT 
macro and see how they can be done from macro.
 Hope this helps.
                  Valeri


> 
> I want to show some data info of a TGRpah when the
> mouse is moved over.
> 
> But I cant even get a TPaveText to draw INSIDE the
> graph.
> 
> If I execute the Label command BEFORE the graph draw I
> see only the graph. If I do it AFTER, I can see a
> "liitle" of the pave text drawn at the bottom, but NOT
> at the declared position !
> 
> what is x and y in the ctor ??? NOT the ABSOLUTE
> values in the pad ?? What does the x,y, in Excute
> event return ?? Obviously NOT the position inside the
> OBJECT which called exceute event, e.g. the left
> bottom corner of TGraph shows something like x=60,
> y=323. I guess its the position relativ to the Canvas
> ??
> 
> Why this strange behavior ???
> 
> Joe
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Buy the perfect holiday gifts at Yahoo! Shopping.
> http://shopping.yahoo.com
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:11 MET