On Mon, 5 Dec 2011, artur tarassow wrote:
Thank you both Sven and Riccardo for your help.
I did now in this way, and it works fine.
----------------------------------------------
loop i=1..models --quiet
colind = ""
k = nelem(mod$i)
loop j=1..k #--quiet
sprintf colind "%s $j", colind
end loop
TR_fw_$i <- gnuplot @colind --with-lines --time-series
--matrix=trace_fw_$i
end loop
----------------------------------------------
This may not be directly relevant to the task you describe,
but it's not too far distant: in CVS and snapshots, the
"yvars" and "xvar" arguments to the gnuplot command can now be
left implicit when a matrix is specified via the --matrix
option.
If --time-series is given the default is to plot all columns
of the matrix against time, otherwise the last column of the
matrix is taken as "xvar" and the others as "yvars".
Of course, you can still specify the columns to plot if you
wish.
Allin Cottrell