与时代罗马字体gnuplot angstrom标签 [英] gnuplot angstrom label with Times-Roman font
问题描述
set encoding iso_8859_1
set term postscript enhanced colorTimes-Roman,32
set outputangstroms.eps
set xlabelTry1 {A}({\305})
plot sin(x)
我得到这个数字:
(注意:我得到的图形是eps格式的,但是我必须上传一个jpg到stackoverflow)
如果我删除了{A},或者把它改成{B}之类的东西,我可以这样做:
set xlabelTry1(/ E {\305})
我得到
其中Å符号已更改为无衬线字体。
这是怎么回事?感谢您的帮助!干杯!
/ Luca
两个不同的脚本,这对Debian x86_64工作适用于我:
集合编码utf8
集合术语eps增强颜色 Times-Roman,32
set outputangstroms-utf8.eps
在图0.1上设置标签,图0.75Try1 {A}(Å)
在图0.1上设置标签,图形0.5Try1 {B}(Å)
在图形0.1处设置标签,图形0.25Try1(Å)
set xlabelTry1(Å)
plot sin(x)
我用4.6.3测试了这个(至少需要4.4,因为 utf8
编码)。作为埃及标志,我使用了拉丁文大写字母A(U + 00C5)
另一个脚本是
设置编码iso_8859_1
set term postscript增强颜色Times-Roman,32
设置输出angstroms.eps
在图0.1设置标签,图0.75Try1 {A}({\305})
设置图0.1的标签,图0.5Try1 {B}({\305})
设置图0.1的标签,图0.25Try1({\305})
set xlabelTry1({\305})
plot sin(x)
我用4.2.0和4.6.3进行测试。所有变种都给出相同的结果:
我使用
<$获得了 png
p $ p> epstopdf angstroms-utf8.eps&& pdftocairo -r 150 -png angstroms-utf8.pdf
I'm trying to produce a plot where I have the character Å (angstroms) in the x axis. Moreover, I want this character to be in the same font as the rest of the graph, that is I want to use Times-Roman. If I use the following code:
set encoding iso_8859_1
set term postscript eps enhanced color "Times-Roman, 32"
set output "angstroms.eps"
set xlabel "Try1 {A} ({\305})"
plot sin(x)
I obtain this figure:
(note: the figure I get is in eps format, but I have to upload a jpg to stackoverflow)
If I remove the {A}, or change it into anything else like {B} I get this:
Finally, if I write:
set xlabel "Try1 (/E {\305})"
I get where the Å symbol changed to sans serif font.
What's going on? Thanks for any help, Cheers!
/Luca
Here two different scripts, which work for me with Debian x86_64:
set encoding utf8
set term postscript eps enhanced color "Times-Roman, 32"
set output "angstroms-utf8.eps"
set label at graph 0.1, graph 0.75 "Try1 {A} (Å)"
set label at graph 0.1, graph 0.5 "Try1 {B} (Å)"
set label at graph 0.1, graph 0.25 "Try1 (Å)"
set xlabel "Try1 (Å)"
plot sin(x)
I tested this one with 4.6.3 (needs at least 4.4 because of the utf8
encoding). As angstrom signs I used the LATIN CAPITAL LETTER A WITH RING ABOVE (U+00C5).
The other script is
set encoding iso_8859_1
set term postscript eps enhanced color "Times-Roman, 32"
set output "angstroms.eps"
set label at graph 0.1, graph 0.75 "Try1 {A} ({\305})"
set label at graph 0.1, graph 0.5 "Try1 {B} ({\305})"
set label at graph 0.1, graph 0.25 "Try1 ({\305})"
set xlabel "Try1 ({\305})"
plot sin(x)
That one I tested with 4.2.0 and 4.6.3. All variants give the same result:
I obtained that png
using:
epstopdf angstroms-utf8.eps && pdftocairo -r 150 -png angstroms-utf8.pdf
这篇关于与时代罗马字体gnuplot angstrom标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!