我有一个包含文件的一些命令:不在gnuplot的相同的字体使用命令行或gnuplot的命令时
$ cat components.plg
set terminal png
set output output
set font "Helvetica,10"
unset xtics
unset ytics
unset border
plot "reportGraph_0" with lines title "Component 0", "reportGraph_1" with lines title "Component 1", "aoi.txt" with lines title "Area of interest"
$
我将不会显示的reportGraph_#这里的内容,但任何在他们2分已验证。
然后我用这个文件作为参数启动gnuplot,然后我得到一个关于Arial的警告(我不完全确定为什么)。
$ gnuplot -e "output='footprint.png' " components.plg
Could not find/open font when opening font "arial", using internal non-scalable font
$
但是,结果图像在非Helvetica中有其文本(但更多的是像无等宽字体sans)。
下面是两个图像(第一个是命令行的输出,第二个是在gnuplot外壳中启动的相同命令序列的输出,以及导出结果图像的输出)。有一个区别,我没有使用gnuplot中的前两个命令(set terminal png
和set output output
) - 我只是将映像“导出”为png。
问题是:为什么我在这两个图像中没有相同的字体? 我想要Helvetica(或Lucida Grande,但不是等宽字体)。
这可能是个窍门,但是这些终端对于我的机器来说是未知的:'第1行:未知或模棱两可的终端类型;为列表键入'set terminal' – fzd