Hi Allin,

I didn't know about these new changes in gnuplot. Following your suggestions this setup works for me now:

{ set term pdf font 'Helvetica,15' lw 3 ; \
    set linetype 1 lc rgb 'blue' ; \
    set linetype 2 lc rgb 'black' ; \
    set linetype 3 lc rgb 'red' ; \
    set linetype 4 lc rgb 'green' ; \
    set linetype 5 lc rgb 'grey' ; \
    set linetype 6 lc rgb 'purple' ; \
    set ylabel '' ; set xlabel 'Horizon' ; \
      set key outside center below horizontal ; }

Best,
Artur


2014-07-15 18:44 GMT+02:00 Allin Cottrell <cottrell@wfu.edu>:
On Tue, 15 Jul 2014, Artur T. wrote:

> I changed the plotting-options as you can find it below, but still the
> lines are not drawn based on the selected colors. Even after omitting the
> options "set ylabel '' ; set xlabel 'Horizon' ; set key outside below
> center horizontal" nothing changes, and the default colorset still applies
> using one-week-old cvs on Windows 8.
>
> <hansl>
> set echo off
> set messages off
> open denmark.gdt --quiet
>
> gnuplot LRM LRY --with-lines --time-series \
> --output="C:\Users\artur.tarassow\Desktop\TEST.pdf" \
> { set terminal pdfcairo font 'Helvetica,15' lw 3 ; \
> set style line 1 lc rgb 'black' ; \
> set style line 2 lc rgb 'green' ; \
> set style line 3 lc rgb 'red' ; \
> set style line 4 lc rgb 'blue' ; \
> set style line 5 lc rgb 'orange' ; \
> set style line 6 lc rgb 'black' ; \
> set ylabel '' ; set xlabel 'Horizon' ; \
> set key outside below center horizontal ; }
> </hansl>

Ah, I see what's happening. Sorry, this has to do with changes between
gnuplot 4.N and gnuplot 5.0 (rc). For "standard" plots the variant syntax
should be handled internally by gretl and the user shouldn't see any
difference, but when the "{ set ... }" apparatus is used to tweak a plot
-- in particular, to change line styles -- the user needs to be aware of
the following:

* In gnuplot 4, you set up user-configured line styles by doing, e.g.,

   set style line 1 lc rgb 'black'
   set style line 2 lc rgb 'green'

followed by

   set style increment user

to get these user-defined styles to be used.

* In gnuplot 5, the method is

   set linetype 1 lc rgb 'black'
   set linetype 2 lc rgb 'green'

and so on, with no need for "set style increment user", which actually
provokes an error now (though that may be softened in the gnuplot 5.0
release to just being deprecated).

So for gnuplot 5.0 use "linetype" instead of "line style" and you'll be
OK. (By the way, the gnuplot version can be determined within a gnuplot
script via the variable GPVAL_VERSION.)

IMO such backward incompatibilities are unfortunate, but I wanted to
start configuring gretl to use gnuplot 5.0 since presumably that will
eventually become the standard on all platforms.

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