Can you provide a small example reproducing your problem ?
On Oct 16, 2011, at 12:32 PM, Melinda Siciliano wrote:
-Dear ROOTers,
I have to fill an histogram (TH1 or TH2) and draw it with a TPaveText in which I write a message. I draw it in a TCanvas object and then I fill it again and I draw it a second time in the same canvas. Before drawing the canvas and the TPaveText again, I clear the canvas and I draw the histogram and the TPaveText again. I would like the that the TPaveText object present in the canvas is only one. The problem is that even when I clear the canvas and the histogram, I have that the TPaveText is not deleted and the following tpavetext are drawn one on the other.
How can I delete from the canvas the other TPaveText objects? is this object related to the histogram? In this case, if I reset the histogram, is the TPaveText deleted? Have I to delete explicetly the TPaveText before drawing again the histogram?
Cheers,
Melinda Received on Tue Oct 18 2011 - 16:33:20 CEST
This archive was generated by hypermail 2.2.0 : Wed Oct 19 2011 - 11:50:02 CEST