Well, you just need to add the "--output="display" flag and it works fine.

nulldata 100

x=normal(0,1)

y=normal(0,1)

grf1 <- gnuplot x --output="display --time-series --with-lines

grf1.show

Best regards,
artur

-- 
**********************************
Artur BALA
Development Economist, Consultant

email:	artur.bala.tn@gmail.com
phone:	+216 24 71 00 80
skype:	artur.bala.tn
**********************************


Le 25/10/2010 14:53, Dr. Ioannis A. Venetis a écrit :

Dear Gretl users,

 

It seems that I cannot use the show command in scripts with gnuplot objects

 

For example when I run the code

 

nulldata 100

x=normal(0,1)

y=normal(0,1)

grf1 <- gnuplot x --time-series --with-lines

grf1.show

 

I get

 

gretl version 1.9.0

Current session: 2010-10-25 16:48

? nulldata 100

periodicity: 1, maxobs: 100

observations range: 1-100

? x=normal(0,1)

Generated series x (ID 2)

? y=normal(0,1)

Generated series y (ID 3)

? grf1 <- gnuplot x --time-series --with-lines

wrote C:\Users\user\Documents\gretl\gpttmp01.plt

? grf1.show

grf1: no such object

Error executing script: halting

> grf1.show

 

When I run the code

 

nulldata 100

x=normal(0,1)

y=normal(0,1)

#grf1 <- gnuplot x --time-series --with-lines

#grf1.show

mdl1 <- ols y const x

mdl1.show

 

then I get

 

gretl version 1.9.0

Current session: 2010-10-25 16:47

? nulldata 100

periodicity: 1, maxobs: 100

observations range: 1-100

? x=normal(0,1)

Generated series x (ID 2)

? y=normal(0,1)

Generated series y (ID 3)

#grf1 <- gnuplot x --time-series --with-lines

#grf1.show

? mdl1 <- ols y const x

 

Model 1: OLS, using observations 1-100

Dependent variable: y

 

             coefficient   std. error   t-ratio   p-value

  -------------------------------------------------------

  const      -0.0762919    0.0862712    -0.8843   0.3787

  x           0.0803576    0.0809250     0.9930   0.3232

 

Mean dependent var  -0.083757   S.D. dependent var   0.859370

Sum squared resid    72.38483   S.E. of regression   0.859430

R-squared            0.009961   Adjusted R-squared  -0.000141

F(1, 98)             0.986025   P-value(F)           0.323161

Log-likelihood      -125.7352   Akaike criterion     255.4704

Schwarz criterion    260.6807   Hannan-Quinn         257.5791

 

mdl1 saved

? mdl1.show

 

 Is there anyone with the same problem and is there a solution?

Please forgive me if I have ignore something obvious.

 

PS=I use windows vista business

 

Best regards

Yiannis

 

*******************************************************

*******************************************************

Dr Ioannis A. Venetis

Assistant Professor

University of Patras

Department of Economic Sciences

University Campus, Rio, 26504, Greece

Tel: +30 2610 969 964

*******************************************************

Ιωάννης Α. Βενέτης

Επίκουρος Καθηγητής

Πανεπιστήμιο Πατρών

Τμήμα Οικονομικών Επιστημών

Πανεπιστημιούπολη, Ρίο, 26504

Τηλ: 2610 969 964

*******************************************************

*******************************************************

 

 

_______________________________________________ Gretl-users mailing list Gretl-users@lists.wfu.edu http://lists.wfu.edu/mailman/listinfo/gretl-users