Clear an Object from a Canvas


I’m tying to Redraw a TLine in another canvas, but I’m buffed how to remove it form the previous one.

I tried just to Update a previous canvas, thinking it will automatically remove the mine after I cal Draw() under another directory, however the line stays there too.
I also tried to remove line from the list of primitives, and that didn’t help too.

root 5.34

Hi. I’m checking; we’ll update here later.

You should make a clone in the new canvas and delete it for the previous canvas.

Works, thank you.