Dear Allin,
as I just played around with the new --band option, I recognized that it
doesn't seem to work when using a matrix, right (at least it doesn't
work here)? Is this intended; and if so why?
Best,
Artur
Am 12.05.2016 um 18:53 schrieb Allin Cottrell:
This is somewhat relevant to
http://lists.wfu.edu/pipermail/gretl-users/2016-May/011845.html
but may be of interest in its own right.
In git and snapshots there's a new option, --band, for the commands
"gnuplot" and "plot". Right now it's very basic (and not yet
documented); it could be fancied up in future by adding a parameter to
inflect the option's effects.
Anyway, here's how it works now. If you have a plot with 3 or more
"lines", the --band option tells gretl to interpret lines 2 and 3 as
upper and lower limits (or vice versa) of a band of some sort (e.g. a
confidence interval). This means that
1) The two band limits will be shown in the same color.
2) The "key" or legend will be suppressed.
3) Gretl will not add a second y-axis, regardless of the scale of the
data (i.e. the option --single-yaxis is implicit).
To see what this does in practice you can compare these two plots:
<hansl>
nulldata 50
set seed 12345
setobs 1 1 --special-time
series y = normal()
series upper = y + 2
series lower = y - 2
list L = y upper lower
gnuplot L --time-series --with-lines --output=display
gnuplot L --time-series --with-lines --output=display --band
</hansl>
Yes, it would be nice if you could also set the style of the band (e.g.
make it a shaded area rather than two lines). That may come,
but it's a lot more complicated.
Allin
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users