Hello,
When I run the script on Win 7 64 bit CVS, I get the error.
gretl version 1.9.92cvs
Current session: 2014-08-11 13:42
'Kelly\AppData\Roaming\gretl\dynmulti.gp' is not the name of a variable
Error executing script: halting
DMplot(M,fname)
But if I change line 58 form
gnuplot --input=@tmpfile --output=@fname
to
gnuplot --input="@tmpfile" --output=@fname
It works. (With the corrections Allin suggested)
I am not sure if this is a windows thing or spaces in the path thing
Logan
Thank you, Allin; this works.
What I am wondered aboit ist that on Linux the error message is much
clearer and helpful than on Windows. The one linux is:
<ERROR>
plot \
^
"/home/artur/.gretl/gpttmp.LQy4tc", line 25: invalid character \
*** error in function DMplot, line 53
> gnuplot
</ERROR>
The one on Windows was not really helpful. But I guess this is gnuplot-
related, right?
Artur
Am 11.08.2014 um 18:33 schrieb Allin Cottrell:
> On Mon, 11 Aug 2014, Artur T. wrote:
>
>> I trying to plot a matrix where the last two columns contain
>> information on confidence intervals which I would like to plot as a shaded
area.
>>
>> I wrote a script, but the pdf is not properly compiled giving me an
>> error msg which I don't fully understand. I attached a script which
>> requires the matrix to plot and the path where to store the pdf as inputs.
>>
>> Unfortunately I can't figure out where the error is.
>
> When you want to write a backslash for line-continuation in a gnuplot
> script via gretl's "printf" command, you need to double it since
> backslash is the escape character. So, for example:
>
> printf "plot \\\n"
> printf "'-' using 1:2:3 w filledcurve lt 8, \\\n"
>
> and so on.
>
> Allin Cottrell
> _______________________________________________
> Gretl-users mailing list
> Gretl-users(a)lists.wfu.edu
>
http://lists.wfu.edu/mailman/listinfo/gretl-users
>
_______________________________________________
Gretl-users mailing list
Gretl-users(a)lists.wfu.edu
http://lists.wfu.edu/mailman/listinfo/gretl-users