Hi,
I have a TCanvas on which there is a histogram plotted, then how to get a pointer of TPaveText of title of the histogram in a macro mode?
gPad->FindObject(“title”);
return me with 0x0.
Thanks,
Zhiyi.
Hi,
I have a TCanvas on which there is a histogram plotted, then how to get a pointer of TPaveText of title of the histogram in a macro mode?
gPad->FindObject(“title”);
return me with 0x0.
Thanks,
Zhiyi.
By the way, the line above is working for interactive mode.
You must call gPad->Update() to force the painting of the objects in the pad
Rene