On Fri, 17 Oct 2014, Ignacio Diaz-Emparanza wrote:
I am writing a function for drawing simple pie charts with gretl
trough
Gnuplot. It seems everything is ok except that gretl produces this error:
"Failed to parse gnuplot file". But if you click over the 'close'
button in
the error message window, the graph emerges correctly, without problem. (I
send the script as attachment). Can I do anything to avoid this error?
This is in gretl from current CVS, on Ubuntu Linux 14.04. Executing gretl
from the console I obtain these messages:
gnuplot: using pngcairo driver
bad gnuplot line: 'reset
'
(but I think 'reset' is not the problem)
Yes, that behaviour needs to be re-worked; I'll have a go at it today.
What gretl is "trying to say" is that it cannot parse the gnuplot file for
the purpose of offering the GUI editor functionality. That doesn't
necessarily mean that there's anything wrong with the plot file -- it just
contains gnuplot commands (such as "reset" here) which gretl has not been
"trained" to recognize and doesn't understand.
If this happened with a plot specification that gretl itself had generated
it would indicate a (gretl) bug. But if the plot has been scripted by a
user gretl shouldn't make a big fuss. We might say something on stderr,
though it shouldn't be "bad gnuplot line" but rather "gnuplot line not
handled by gretl" or similar. And we shouldn't put up the error dialog.
Allin