Discussion:
[Gretl-users] gnuplot command
a b
2007-05-07 20:21:37 UTC
Permalink
Hi everybody !

On undated data, I try to draw a scatterplot by the
following :
"scatter1" <- gnuplot x y
"scater1".show
but I get two message error (attached) and a black
graph window on the screen .
I tried with other data --annual and undated-- and had
no problem!

Best,
Artur



___________________________________________________________________________
D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions !
Profitez des connaissances, des opinions et des exp?riences des internautes sur Yahoo! Questions/R?ponses
http://fr.answers.yahoo.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message1.jpg
Type: image/jpeg
Size: 10922 bytes
Desc: 1846184166-message1.jpg
Url : Loading Image...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: message2.jpg
Type: image/jpeg
Size: 18857 bytes
Desc: 3835158081-message2.jpg
Url : Loading Image...
Allin Cottrell
2007-05-07 20:57:04 UTC
Permalink
Post by a b
On undated data, I try to draw a scatterplot by the
"scatter1" <- gnuplot x y
"scater1".show
but I get two message error (attached) and a black
graph window on the screen .
What's the build date of the gretl version you're using (see under
/Help/About)?

I can't replicate the problem here -- could you maybe send me a
copy of the data file for which you're drawing the plot?

Allin Cottrell
a b
2007-05-08 11:13:07 UTC
Permalink
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: C1Ex1.gdt
Type: application/x-gretldata
Size: 314 bytes
Desc: 4031234138-C1Ex1.gdt
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20070508/77dffacc/C1Ex1.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: C1Ex1.inp
Type: application/x-gretlscript
Size: 1080 bytes
Desc: 882034282-C1Ex1.inp
Url : http://lists.wfu.edu/pipermail/gretl-users/attachments/20070508/77dffacc/C1Ex1-0001.bin
Allin Cottrell
2007-05-08 15:40:33 UTC
Permalink
I'm attaching the data file and the script file.
Thanks. I see what the problem is: it's the "display name" of the
y variable, namely "Quantit? d'engrais". The embedded "'" causes
trouble when gretl writes (for gnuplot):

set title 'Quantit? d'engrais... '

So far as gnuplot is concerned, the title ends at "d'", leaving
"engrais" hanging there as a syntax error.

I'll fix this, and also another related thing: I now realize that
the GUI mechanism for changing the display name involves using the
"label" alias for "setinfo", which I just deleted!

Allin
Sven Schreiber
2007-05-08 20:18:15 UTC
Permalink
Post by Allin Cottrell
Thanks. I see what the problem is: it's the "display name" of the
y variable, namely "Quantit? d'engrais". The embedded "'" causes
I'll fix this,
Does this mean I can write "Gau?'sche" in the German translation again? ;-)

Or to put it more seriously: what is the limitation of gnuplot in terms
of characters?

cheers,
sven
Allin Cottrell
2007-05-08 21:25:45 UTC
Permalink
Post by Sven Schreiber
Post by Allin Cottrell
Thanks. I see what the problem is: it's the "display name" of the
y variable, namely "Quantit? d'engrais". The embedded "'" causes
I'll fix this,
Does this mean I can write "Gau?'sche" in the German translation again? ;-)
Yes, that should work now.
Post by Sven Schreiber
Or to put it more seriously: what is the limitation of gnuplot
in terms of characters?
Single quotes or apostrophes are now OK, double quotes are not OK.

Gnuplot doesn't do proper i18n so handling the encoding/recoding
when interfacing with gnuplot is a bit of a nightmare. I've
patched up a few things today, but I can't guarantee that things
will work with the full generality that one would like.

Allin.
a b
2007-05-12 10:50:31 UTC
Permalink
Allin Cottrell a ?crit :
On Tue, 8 May 2007, Sven Schreiber wrote:



Allin Cottrell schrieb:



Thanks. I see what the problem is: it's the "display name" of the
y variable, namely "Quantit? d'engrais". The embedded "'" causes
trouble when gretl writes (for gnuplot):

I'll fix this,


Does this mean I can write "Gau?'sche" in the German translation again? ;-)



Yes, that should work now.


Allin.
I'm afraid it doesn't yet ! At least for the "Quantit? d'engrais" label ! I have the same trouble !
By the way, when Gretl automatically computes/ transforms variables --such as log, squared and so on -- it adds a description; Could be possible to set the display name as well ?

Have a good weekend !
Best regards
Artur



---------------------------------
D?couvrez une nouvelle fa?on d'obtenir des r?ponses ? toutes vos questions ! Profitez des connaissances, des opinions et des exp?riences des internautes sur Yahoo! Questions/R?ponses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wfu.edu/pipermail/gretl-users/attachments/20070512/e8aab7e2/attachment.htm
Loading...