TMatrix and TGraph

Krieg, M. (Krieg@ihqsrv.etec.uni-karlsruhe.de)
Tue, 24 Mar 98 10:02:00 W


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