Nice idea, sven. Thank you for your reply.

But unfortunately this does not work properly, since the string printed looks like
-------
1234
-------
but gnuplot needs for seperating the columns a space between the numbers:
----------
1 2 3 4
----------

Best,
Artur

2011/12/5 Sven Schreiber <svetosch@gmx.net>
On 12/05/2011 11:49 AM, artur tarassow wrote:
> Hello gretl users and programmers,
>
> I would like to request a feature for plotting matrices -- of course
> only if it would not be too difficult to implement and makes some sense
> to you ;-)
> Until now one has to define each column which one wants to plot. Could
> it be possible to make an option available like
>
> ----------------
> gnuplot 1..5 ---with-lines --time-series --matrix=X
> ----------------
>
> to make it easier to plot several columns in a sequence (1 to 5) at once?
>
> I ask for this since i've got to generate some figures via a loop
> command and the underlying matrices have different dimensions:
>
> ----------------
> loop for i=1..models --quiet
>     TR_fw_$i <- gnuplot 1..k --with-lines --time-series --matrix=trace_fw_$i
> endloop
> ----------------
>
> Maybe somebody has another simple solution for this?
>

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>

hth,
sven

_______________________________________________
Gretl-users mailing list
Gretl-users@lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users