The TPaveText containg the title is regenerated automatically when
the pad is redrawn.
If you want to add a different annotation without changing the title,
create your own TPaveLabel/Text with your own line9s)
Rene Brun
On Fri, 16 Aug 2002, Thomas Bretz wrote:
> Hi,
>
> I'm doing:
> hist.Draw();
> gPad->Update();
> TPaveText *t = gPad->FindObject("title");
>
> If I do:
> t->AddText("something");
> the is going to have two lines (the title of the histogram and 'something')
>
> If I do:
> t->Clear();
> the pave is empty.
>
> If I do:
> t->Clear();
> t->AddText("something");
> the title of the histogram is displayed in the pave.
>
> How can I change the title displayed in the pad _without_ changing the
> histogram title?
>
> Thanks,
> Thomas.
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET