On Tue, 9 Mar 2010, Artur T. wrote:
Allin Cottrell schrieb:
>> (4) Include the option "Insert shaded area" in the GUI.
> We now have something along these lines, for annual, quarterly and
> monthly time series plots. It's implemented via a plain text file
> that defines start and stop dates for the shaded bars. CVS and the
> snapshots contain a sample file that lets you add NBER recession
> bars, and you can write your own file on the same pattern.
Thanks for the implementation of shaded areas - a nice feature.
But some bugs remain. For some variables an error occurs if I
want to add the shaded area, for some others the shaded area
fills only a part of the graph whereas for some others
everything is fine. Try for example the money.gdt file. For
"tbr" I get "data error", "m" works fine, "infl"
produces also
a "data error", for "y" the shaded area is not complete (shaded
only for the range 7.2-8.8) and also "cpr" produced a "data
error".
Thanks for testing. These things should now be fixed in CVS. The
reason for the shaded bars not going the full height of the plot
in some cases was quite subtle and may not be fully fixed, though
it's now OK in all the cases I've tested.
That is, we read the height of the original plot in data units,
and ask gnuplot to add bars of that height. But in some cases
adding the bars apparently causes gnuplot to expand the y-range,
so the bars end up looking short. I've tried to stop that from
happening by making the bars very slightly shorter than the
original y-range.
Allin.