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