On Sun, 4 Oct 2020, Sven Schreiber wrote:

Am 04.10.2020 um 21:53 schrieb Ioannis A. Venetis:

open AWM18.gdt
gnuplot YER --time-series --with-lines --fit=quadratic --output=display
I get the error
"C:\Program Files\gretl\wgnuplot.exe"
"C:\Users\Venetis\AppData\Roaming\gretl\gpttmp.MI60R0": exit code 1
I erroneously thought that maybe it is not possible for gretl to write
the temporary file in my temporary folder in windows.
But on a second check with Gnuplot and the temporary graphics file I
found that an odd character appears in gpttmp.MI60R0
(it is bolded by me below). When i manually change the character into s
then Gnuplot produces the png file.
# plot includes automatic fit: quadratic
plot \
'-' using 1:2 notitle w lines, \
730331.8313 + 7484.777486*(4.0*(x-1970)+1) +
-3.906286399*(4.0*(x-1970)+1)**2 title "Y = 7.30e+005 + 7.48e+003t -
3.91t^2" w *lineû*

I can confirm this behavior (on Windows). It sure looks like a bug,
maybe the line is getting to long: at least in lib/src/graphing.c on
line 2797 it looks suspicious to me to declare the following:
char fitline[128] = {0};

Yes, that's bad. It's now fixed in git: "fitline" is no longer a fixed-length buffer.

Allin
_______________________________________________
Gretl-users mailing list -- gretl-users@gretlml.univpm.it
To unsubscribe send an email to gretl-users-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-users.gretlml.univpm.it/

Reply via email to