Re: [ROOT] Tgraph function for real time plotting?

From: Rene Brun (Rene.Brun@cern.ch)
Date: Tue Jul 20 2004 - 12:45:11 MEST


Hi andrew,

Use TGraph::SetPoint(i,x,y) to add a new point or modify an existing point.
If i is greater than the current number of points, the arrays are automatically
expanded.

Rene Brun

Andrew Sammut wrote:
> 
> Hi all
> 
> I am running Version 4.00/06, 5 June 2004 on a Pentium 4, Windows XP platform.
> 
> I require to use the Tgraph function or any alternative to plot a graph in real time; another program is running in the backround creating the data i require to plot and is being saved in a text file. I require root to access such a text file, perform numeric manipulation and plot the data on a graph. The problem i am having is to give the Tgraph function data items one at a time and not in array form. Is this possible?
> 
> Thank you
> 
> Andrew Sammut



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:09 MET