On Mon, 23 Aug 2010, Summers, Peter wrote:
I'm having a couple of issues with the gnuplot command in a
script. If I write "gnuplot y x," gretl writes the .plt file in
my working directory (c:\program files\gretl), as described in
the command reference. If I add a file name, say "gnuplot y x
--output=ch2.pdf", the file is written ok but to a different
directory (one I was working in on Friday).
You're right, there was an inconsistency there. With plain
"gnuplot x y" the result (gpttmp*.plt) went to your pre-specified
working directory, but with --output=filename the path is
conditional: if the option to "use the current directory as
determined via the shell" is checked, it goes to the current
directory, otherwise it goes to the specified working directory.
It seems to me that the second of these behaviors is correct so in
CVS I've modified plain "gnuplot x y" to do the same.
Using "output=display" doesn't produce anything.
looks like a graph window may get created & then immediately
I'll have to check that on Windows; it works as expected on Linux.