[ROOT] Strange TPaveText bahavior

From: Andreas Petzold (A.Petzold@Physik.TU-Dresden.DE)
Date: Wed Jun 19 2002 - 12:41:35 MEST


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






c2.gif
c1.gif



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