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}‘

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.

I admit the plot does not make any sense, but gretl should give an output anyway, right?

Do I miss something?

 

Thanks in advance for any hints!

 

Regards,

Waldemar

 

PS:

 

By using R:

< R>

Y <- c(2, 3, 6, 4, 1)

X2 <- c(4, 4, 4, 4, 4)

plot(X2, Y)

</ R>

 

I get a simple scatter plot.