Re: Updating Graphs

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Jan 08 1999 - 16:16:55 MET


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



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:27 MET