Removing all points from TGraph

Hello,

is there an easy way to remove all points from a TGraph? Something like Reset() function for THxx classes?

Thanks, Kašpi.

Did you try
root.cern.ch/root/htmldoc/TGraph.html#TGraph:Set ?

Ooohps, I looked over this method. Thanks very much,

Kašpi.

[quote=“fine”]Did you try
root.cern.ch/root/htmldoc/TGraph.html#TGraph:Set ?