Re: [ROOT] Strange TPaveText bahavior

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Jun 19 2002 - 14:57:26 MEST


Hi Andreas,

The member TPave::fBorderSize was not initialized by the TPave default
constructor. Now fixed in CVS.

Concerning your second problem, the arguments of TPave,..TPaveText
are by default in the user coordinate system. If you want
to specify them in NDC, do, eg
TPaveText * pave3 = new TPaveText(0.1,0.1,0.4,0.4,"brNDC");

Rene Brun



On Wed, 19 Jun 2002, Andreas Petzold wrote:

> hi rooters,
> 
> when i do:
> 
> root [0] TPaveText * pave = new TPaveText();
> root [1] TCanvas c
> root [2] pave->SetX1NDC(0.5)                
> root [3] pave->SetY1NDC(0.5)                
> root [4] pave->SetY2NDC(0.8)                
> root [5] pave->SetX2NDC(0.8)
> root [6] pave->Draw();
> root [7]  TPaveText * pave2 = new TPaveText();                //typo
> root [8]  TPaveText * pave3 = new TPaveText(0.1,0.1,0.4,0.4);
> root [9] pave3->Draw();
> 
> i get two TPaveTexts, that should differ only in their location in the 
> pad. but see for yourself... (attached c1.gif). 
> 
> another point is the following:
> 
> root [0] TH1D h1
> root [1] h1.Draw()
> root [2] TPaveText * pave3 = new TPaveText(0.1,0.1,0.4,0.4);
> root [3] pave3->Draw();
> 
> produces a PaveText at the given coordinates but not, as stated in
>  http://root.cern.ch/root/htmldoc/TPaveText.html ,
> in the NDC (c2.gif).
> 
> am i doing something wrong here?
> 
> bye
> 
> andreas
> 
> p.s. i'using a cvs-snapshot from SUN-16-Jun-2002 on rh72
> 
> 
> 
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:57 MET