|
From: sgiani <sam...@gm...> - 2009-05-29 08:13:44
|
Dear Thomas,
thanks a lot for the suggestion, it pointed me towards the good direction, I
am satisfied of the result but there is still something I can't understand.
First of all I would like to point out that in your example,
> set xlabel 'Wavelength (\305)'
>
the "\305" should be between brackets "{\305}"
The rest of the problem, as much as I could deduce, lies probably in the
type of font one uses: in facts I would like to use LaTeX font cmr10.ttf,
and it seems iso_8859_1 encoding it is not totally supported.
I tried to experiment some of the characters listed on the standard
(http://en.wikipedia.org/wiki/ISO_8859-1) within the
> set term png enhanced font "cmr10"
settings
For some amongs them I get the corresponding glyph (as they are called in
the jergon ;-) ), but for others just an empty square box. I tried also the
usual Symbol.ttf font but same story.
Hereafter i post a possible workaround, mixing the font that I desire for
labels (cmr10.ttf) and another that allows me to display the Angstrom
caracter \305 (luxirr.ttf):
> set term png enhanced font "cmr10"
> set xlabel 'Wavelength ({/luxirr.ttf \305})'
Greetings from Switzerland, the land of the constructive compromises! Sam
Thomas Sefzick wrote:
>
> you don't need a special file.
> define GDFONTPATH and then give the filename
> (without extension) as font name when setting the
> terminal to png.
>
> an example:
>
> i want to use luxi roman regular, the font file is there:
>
> /usr/share/fonts/truetype/luxirr.ttf
>
> in the shell i set:
>
> export GDFONTPATH=/usr/share/fonts/truetype
>
> and in gnuplot:
>
> set encoding iso_8859_1
> set xlabel 'Wavelength (\305)'
> set term png enhanced font luxirr
> set output 'test.png'
> plot x
> set output
>
>
--
View this message in context: http://www.nabble.com/Angstroms-symbol-in-Gnuplot-tp23065915p23776044.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|