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
----------------------------------------------
Best,
Artur
On Mon, 5 Dec 2011, Sven Schreiber wrote:
A technical note to Sven's idea: the problem is not the space (or lack thereof): a print format like "%3d" would have solved the problem; the problem is that when you "printf" a matrix, a newline is automtically appended, which confuses the gnuplot command.sprintf strColindices "%d", seq(1,cols(mymatrix))
gnuplot @strColindices --with-lines <etc>
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Universitą Politecnica delle Marche
r.lucchetti@univpm.it
http://www.econ.univpm.it/lucchetti
_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users