Ok, thanks very much for that. The boxplot works fine
<script
loop foreach i L
boxplot $i --output=$i_box.eps
endloop
<script
But:
<script
open data9-7
list L = QNC INCOME PRICE UNEMP
loop foreach i L
gnuplot $i --time-series --with-lines --output=$i.eps
endloop
<script
generates an error:
<output
? list L = QNC INCOME PRICE UNEMP
Generated list L
? loop foreach i L
gnuplot $i --time-series --with-lines --output=$i.eps
endloop
? gnuplot QNC --with-lines --time-series --output=QNC.eps
plot '-' using 1:($2) title "fitted" w lines lt 2, '-' using
1:($2)
title "actual" w lines lt 1
^
"/home/artur/gretl/QNC.gp", line 77: warning: Skipping dat
> gnuplot $i --time-series --with-lines --output=$i.eps
<<output
Artur
2009/2/23, Allin Cottrell <cottrell(a)wfu.edu>:
On Mon, 23 Feb 2009, Allin Cottrell wrote:
> One thing on the "TODO" list is a modification of gretl's gnuplot
> command so that you can do something like
>
> gnuplot <specs> --output=foo.eps
>
> The idea is that the "output" parameter would (a) give you control
> over the naming of the file, and (b) allow you to specify the
> type of file implicitly via the filename extension (.eps, .pdf,
> .svg, .png, etc., for gnuplot-supported formats)...
This is now implemented in CVS and Windows snapshot. Hence the
following will produce a set of EPS files:
open data9-7
list L = QNC INCOME PRICE UNEMP
loop foreach i L
gnuplot $i --time-series --with-lines --output=$i.eps
endloop
# or perhaps...
loop foreach i L
boxplot $i --output=$i_box.eps
endloop
(And similarly for .pdf, .png and .fig)
If you need detailed control over the appearance of the plots,
though, save to gnuplot command files then edit to taste.
Allin Cottrell
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users