On Fri, 11 May 2018, Allin Cottrell wrote:
On Fri, 11 May 2018, Waldemar wrote:
> Hello,
>
> I wanted a simple scatter plot in gretl. But an issue came up and I cannot
> figure out a solution. I use gretl, Version 2018a in Windows 10 PC.
>
> Example 1
> <hansl>
> matrix Y = {2, 3, 6, 4, 1}'
> matrix X = {1, 3, 5, 4, 2}'
> matrix A = Y ~ X
> gnuplot 1 2 --matrix=A --output=display
> </hansl>
>
> Example 1 works fine. A scatter plot is displayed.
>
> Example 2
> <hansl>
> matrix Y = {2, 3, 6, 4, 1}‘
There's a syntax error in the line above: the last character on the line
(left open quote or backwards apostrophe) is not meaningful to gretl.
> matrix X2 = {4, 4, 4, 4, 4}'
> matrix B = Y ~ X2
> gnuplot 1 2 --matrix=B --output=display
> </hansl>
>
> There is no plot. I get only the following feedback:
>
> "C:\Program Files\gretl\wgnuplot.exe"
> "C:\Users\Waldemar\AppData\Roaming\gretl\gpttmp.kxKHPP":
> exit code 1
>
> Fehler bei Skriptausführung: Stopp
>> gnuplot 1 2 --matrix=B --output=Display
>
> After launching gnuplot, I cannot find the plot in my working directory.
After the message above is emitted, that would not be expected.
> I admit the plot does not make any sense, but gretl should give an output
> anyway, right?
Possibly, if it's supported by gnuplot. We'll take another look at this
(after fixing the matrix-transpose symbol).
OK, I see what's going wrong: when given a zero-width range for the
x-axis variable (as above, corrected) we were feeding gnuplot an
unacceptable "xtics" line. That's now fixed in git, snapshots will
follow.
Allin Cottrell