On Tue, 28 Jun 2016, Sven Schreiber wrote:
Am 28.06.2016 um 23:30 schrieb Allin Cottrell:
> (2) --band-style wants either 1 or 2 arguments (comma-separated if you
> give two). The first may be either "line", "dash" or
"fill", to
> represent the band by enclosing lines or dashes, or by a shaded area.
> The default, if this argument is omitted, is "line". The second is a
> hexadecimal RGB color specification: for example 0xff0000 means red.
Great stuff -- but would it be too much to ask that standard gnuplot color
aliases were also recognized? (Like "grey", "blue" etc.) Actually,
since all
this is passed to gnuplot, wouldn't this actually come at no cost? (Well, the
gretl parser probably needs to be taught to accept the input?)
I agree this would be nice, however I'm inclined to leave it till
after the forthcoming release.
The thing is that it will require a revamp of the gretl parser for
gnuplot files (OK, a fairly minor one) and also a resizing of the
struct element which holds a line color specification. Right now we
assume a color spec will fit in 8 bytes, but with color names we'll
have to accommodate, e.g., "dark-spring-green". And we'll have to
ensure this is done consistently wherever we store colors, to avoid
buffer overruns and crashes.
Allin