Am 04.03.2013 16:54, schrieb Allin Cottrell:
Though that might be a nice exercise for a function package.
Gnuplot has the "filledcurve" plotting style which could do
the job.
Good idea -- I have attached a file with a function that seems to work
ok, just run the script to see the example.
The function uses a temp file to write out the gnuplot command and then
run it because it seems to be quite difficult to construct the relevant
command string with string substitution etc. internally. Although you
are probably going to point out that it should work just the same with
sprintf as with printf.
A problem is that as soon as you try to change something about the graph
(font size etc.) within gretl, the filled areas are reset to pure lines,
so it's a take-it-or-leave it deal so far. Nevertheless, since I
typically just change the fonts and linewidths for the PDF export, it's
already quite usable for me.
cheers,
sven