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
2011/12/5 Riccardo (Jack) Lucchetti <r.lucchetti(a)univpm.it>
On Mon, 5 Dec 2011, Sven Schreiber wrote:
sprintf strColindices "%d", seq(1,cols(mymatrix))
> gnuplot @strColindices --with-lines <etc>
>
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.
Riccardo (Jack) Lucchetti
Dipartimento di Economia
Università Politecnica delle Marche
r.lucchetti(a)univpm.it
http://www.econ.univpm.it/**lucchetti<http://www.econ.univpm.it/lucche...
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users