我在 Windows 中使用 Gnuplot 4.6 和 pngcairo 终端来绘制一些东西。如果我尝试使用 arial-bold 字体,则会收到以下错误:

Pango-WARNING **: couldn't load font "arial-bold, Not-Rotated 360", falling back to "Sans Not-Rotated 360", expect ugly output.

这与没有 -, ,以及当我使用指定大小(添加 ,x)时。这很奇怪,因为我从未指定过这个'Not-Rotated' 业务,当我只使用 arialarial,x 没有提到(并且脚本运行顺利)。我可以使用另一种字体,或者其他方式告诉它使字体加粗吗?

这是我的脚本的主要部分(省略线条样式定义和其他修饰):

set output "./Paired CDFvsdRd Graph #17.png
set title "Effect of IRSS LWIR @ 10m (15kts, φ=all°)" offset 0,1 font 'arial-bold,30'
set term pngcairo dashed size 1280,960
set key font "arial,14"
set xlabel "dRd [AU]" offset 0,-1 font "arial-bold,18"
set ylabel "CDF" offset -1,0 font "arial-bold,18"
set mxtics 5 ; set mytics 5
set grid xtics mxtics ytics mytics ls 6, ls 5
set xrange [-0.612187:0.421873]       # Change [min:max] to desired x range

plot './Paired CDFvsdRd Graph #17.csv' u 1:2 title "IRSS, 15kts, θ=30°" w l ls 1,\
'./Paired CDFvsdRd Graph #17.csv' u 5:6 title "IRSS + HFC, 15kts, θ=30°" w l ls 2,\
'./Paired CDFvsdRd Graph #17.csv' u 9:10 title "IRSS, 15kts, no-sun" w l ls 3

我正在使用 Gnuplot 4.6 补丁级别 5

有帮助吗?

解决方案

好的,显然 arial-bold 和 Arial-Bold 之间存在足够显着的差异。仅此而已,这很奇怪,因为我确定我是从使用资本字体名称开始的,最终在网上看到了许多人使用较低案例的人和试用试验测试的示例之后,我停止了打扰大写。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top