On Mon, 5 Dec 2011, Sven Schreiber wrote:
Write the column indices into a string and insert the string in your
gnuplot command. Something like (totally untested):
sprintf strColindices "%d", seq(1,cols(mymatrix))
gnuplot @strColindices --with-lines <etc>
In other words:
<hansl>
T = 20
matrix x_1 = mnormal(T, 3)
matrix x_2 = mnormal(T, 2)
matrix x_3 = mnormal(T, 6)
loop i=1..3 --quiet
colsel = ""
c = cols(x_$i)
loop j=1..c --quiet
sprintf colsel "%s $j", colsel
end loop
gnuplot @colsel --matrix=x_$i --output=display
end loop
</hansl>
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/lucchetti