TMatrix and TGraph

From: Krieg, M. (Krieg@ihqsrv.etec.uni-karlsruhe.de)
Date: Tue Mar 24 1998 - 01:02:00 MET


Hi Roots,

I have the following problem concerning TGraph and the Linear Algebra 
package:

I want to plot several lineplots in a single graph using the TGraph class. 
All plots use the same x-values stored in a float pointer *x but have (of 
course) different y-values. The y-values are stored in a Matrix nK(i,j) of 
the TMatrix class, each line of the Matrix corresponds to the y-values of 
one plot.
Now the problem is, that TGraph needs 2 float pointers pointing at the x and 
y values of the plot. So if I want to use TGraph I have to set float 
pointers pointing on each line of the TMatrix Object.
I would like to know how one does that with a real good programming style 
using the linear algebra package of ROOT! Has anyone an idea?

Thanks a lot in advance!
Martina



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