Help:Animating a plot

Hi everyone,
I would like to animate a plot (change it every 1s)
gr = TGraph(n,x,y);
and after every 1s I change the y.
I would like to know how to update the graph.

root.cern.ch/root/html534/tutori … nim.C.html

Thank you! :slight_smile: