Re: Updating Graphs

Rene Brun (Rene.Brun@cern.ch)
Fri, 08 Jan 1999 16:16:55 +0100


John Willoughby wrote:
>
> Hello Rooters
>
> I have draw a graph using root. I would like to change a few of the
> values and then update the modified graph. Can this be done simply?
>
> thanks
>
> John

You can update a graph directly with the mouse.
I suggest you execute the tutorials called "graphh" and "gerrors2"

If you have a TGraph *gr, you can also do
gr->SetPoint(i,newvalue);
gPad->Modified(); //this will trigger update of teh current pad

Rene Brun