On Fri, 25 May 2018, Allin Cottrell wrote:
On Fri, 25 May 2018, Andreas Zervas wrote:
[about a gretl
script thet calls Octave to make a PDF plot]
>
> In any case, I cannot make it work under win 10, no matter which version of
> gretl (I have used 1.9.92, 2016d, 2017d) and octave (3.4.3, 4.2.1) I use.
>
> Could you take a look on this issue?
I can confirm that your script works on Linux using current gretl and Octave
4.4.0. I'll try testing on Windows when I get a chance.
I just tried with current gretl and Octave 4.4.0 on Windows 10. the
script ran OK, except that it wrote the output file, plotx.pdf (which
was given without a path in the script) into my gretl "dotdir"
(temporary storage area) so it was not readily findable, and moreover
would be automatically deleted on exit from gretl.
That issue is fixable by specifying a path to the plot file in the
script, but I'd say it is a gretl bug. We should ensure we're in the
gretl "workdir" when calling a "foreign" program so the user knows
where this sort of output is going.
By the way, the path to Octave that I specified under gretl's
Preferences was
C:\Octave\Octave-4.4.0\bin\octave-cli.exe
(after accepting their default installation path).
Allin