Hi Rooters,
Is there any way of deleting a TGraph from a TPad without using the Clear function? I want a quick way of updating canvases without having to clear everything and replot.
Thanks
Matt
Hi Rooters,
Is there any way of deleting a TGraph from a TPad without using the Clear function? I want a quick way of updating canvases without having to clear everything and replot.
Thanks
Matt
To remove TObject *object from a pad, do
pad->GetListOfPrimitives()->Remove(object);
In case you know only the object name
TObject *object = pad->GetListOfPrimitives()->FindObject(objectname);
pad->GetListOfPrimitives()->Remove(object);
Rene