gnuplot:gif终端中的文本标签不支持字体?

时间:2015-03-23 09:01:34

标签: label gnuplot gif

在以下gnuplot代码中:

`set term gif
set output "try.gif"
set xrange [0:30]
set yrange [0:4]
set autoscale x
set palette model RGB
unset colorbox
unset xtics
unset ytics 
set object 1 rectangle from 3,3 to 28,3.5 fillcolor rgb "#0000FF" fillstyle solid 0.8 noborder
set label 1 "Stage1" at 15.5, 3.25 center  front font "arial,20" textcolor rgb "#000000" 
plot -1 notitle`<br/>

我想绘制一个矩形并将文本标签放在上面。我希望我可以控制字体的大小。但是当我在代码中插入font "arial,20"时,我收到以下错误消息:
gdImageStringFT: Could not find/open font while printing string Stage1 with font arial

我想确定,这是因为我的gnuplot工具还是就像那样?

1 个答案:

答案 0 :(得分:0)

我没有使用术语gif,但出于好奇:你有arial字体并且之前在gnuplot中使用它(在linux下你可以在msttcorefonts包中获得它)?最好在你的问题中明确地写出来:))