On Sun, 3 Mar 2013, Sven Schreiber wrote:
Am 03.03.2013 20:42, schrieb Allin Cottrell:
> On Sat, 2 Mar 2013, Sven Schreiber wrote:
>
>> following Allin's call for suggestions, I'm attaching an example how it
>> could actually be useful to call Python from gretl. (I'm attaching
>> rather than pasting it to hopefully preserve the indentation for
>> Python.) This uses matplotlib's stackplot wich produces a stacked area
>> plot. I think you need the recent matplotlib version 1.2 for this.
>
> Works fine here, thanks. It would be nice, though, if the plot
> were to display somehow instead of just being written to file
> in the background.
Ok, try this instead, I hope it should work on most python distributions
(not all backends are necessarily available even when python+numpy+mpl
are installed).
Nice, the graph displays fine here.
Actually, I'm not a matplotlib expert, and the reason is
basically...
gretl! There was a time when some graph manipulations were difficult or
impossible in gretl (low-level gnuplot hacking aside), and I started
learning mpl. But you listened to users' demands and made some crucial
things possible and/or easy to do, and that's why I haven't used mpl a
lot. But relax -- you don't have to implement stacked area charts now in
gretl :-)
Though that might be a nice exercise for a function package.
Gnuplot has the "filledcurve" plotting style which could do
the job.
Allin