[ROOT] TPaveText not shown

From: Jiri Masik (masik@fzu.cz)
Date: Fri May 30 2003 - 15:44:32 MEST


Hi,

what is wrong with the following macro that the label is not drawn?
It looks like TPaveText object is destroyed early.
Thanks in advance.  
cheers

Jiri



{
TH1F *h1 = new TH1F("h1","",10,0.,1.);
h1->Draw();

TPaveText *drtxt = new TPaveText(0.63, 0.48, 0.85, 0.54,"brNDC"); 
drtxt->AddText("a");
drtxt->Draw();

}

3.05/05 - 29 May 2003 linuxdeb2/linuxdeb2ppc



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET