Dear Allin,

Thanks for your quick response.
Attached please find the plt file which is generated by the following script under zh_TW environment of the gretl.

<script>
open djclose
smpl 1988/01/04 1989/12/29
gnuplot djclose --time-series --with-lines --output=gf1.plt
</script>

I tried to use wgnuplot.exe to open this attached gf1.plt. And the Traditional Chinese characters are decoded correctly on the x-axis within wgnuplot.exe.

Note that I did not editing the content of the gf1.plt. It was automatically generated by the above script.
A strange thing is that the Chinese characters in the title of plot are shown correctly from the same plt file (see the attached png image).

Thanks

Yi-Nung

 

2010/6/21 Allin Cottrell <cottrell@wfu.edu>

On Mon, 21 Jun 2010, yinung at Gmail wrote:

> I found that if I use a shorter subsample, for example, running the
> following script
>
> open djclose
> smpl 1988/01/04 1989/12/29
> gf1 <- gnuplot djclose --time-series --output=display --with-lines
> gf1.show
>
> By examining the gnuplot command, it seems ok as after editing
> the gnuplot command:
>
> set xtics (....)
>
> After the "set xtics" command, there are some Chinese characters
> which look correct. However, these Chinese characters are not
> appropriately shown in the graph windows. I realize that this
> might be caused by the translation of the GNUPLOT.

Are you editing the xtics specification in gretl's "Edit plot
commands" window?  If text looks correct in that window it will be
in UTF-8. Towards the top of the file there should be a line
"set encoding utf8" that tells gnuplot to do the right thing with
such text.

I'm not sure what's going wrong, but if you could email me the
plot-commands file, as edited by you, maybe I can figure it out.
You can save a copy using the "Save as" button in the editing
window.

(Of course, the Chinese characters will not display correctly if
the font you have selected for plots in gretl does not contain the
required glyphs, but I assume you have selected a suitable font.)

Allin Cottrell


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