linux - 如何使用 Gnuplot 4.6 和 AIX 7.2 修复 "Could not find/open font when opening font arial..."和模糊的 png?

标签 linux gnuplot aix

我在 AIX 7.2 中遇到此错误:

Could not find/open font when opening font "arial", using internal non-scalable font

我不知道如何解决它......有什么想法吗?

您认为这个错误可能是我的图表“模糊”的根源吗?

image_1
(来源:noelshack.com)

这是我的 gnuplot 脚本:

set title "df -g command test"
set terminal png truecolor size 720,480 background rgb "#eff1f0"
set output "test.png"
set grid
set style line 1 \
    linecolor rgb '#0060ad' \
    linetype 1 linewidth 1 \
    pointtype 7 pointsize 1

set style line 2 \
    linecolor rgb "red" \
    linetype 1 linewidth 1 \
    pointtype 7 pointsize 1

set offsets 0.5,0.5,0,0.5
set datafile separator ","
set ylabel " MB BLOCK "
set xlabel " Date "
set format y "%g"
myLabel(n) = sprintf("%g",n)

plot "XXXXX" using 2:xtic(1) with linespoints linestyle 1 title "MB used", \
'' using 3:xtic(1) with linespoints linestyle 2 title " Free space ", \
'' using 0:2:(myLabel($2)) w labels offset 0,1.5 notitle, \
'' using 0:3:(myLabel($3)) w labels offset 0,1.5 notitle

如果我在 RedHat 7.6 上尝试这个脚本(没有可用空间曲线),我的 png 看起来很棒: image_2
(来源:noelshack.com)

你有什么想法吗?

最佳答案

好的,我改变:

set terminal png truecolor size 720,480 background rgb "#eff1f0"

致:

set terminal pngcairo truecolor size 720,480 background rgb "#eff1f0" font "Arial"

这太棒了。

关于linux - 如何使用 Gnuplot 4.6 和 AIX 7.2 修复 "Could not find/open font when opening font arial..."和模糊的 png?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57754208/

相关文章:

linux - gunicorn 开机后不启动

JavaPlot (GNUPlot) 设置图例标签和坐标轴名称

gnuplot - 水平颜色框对面的 cbtics 标签

无法加载模块 libdb2.a(shr.o)

linux - git 可以使用基于补丁/差异的存储吗?

linux - 如何用hadoop打印文件树?

python - Gnuplot(或 matplotlib): create non-bar chart with categories on x-axis

linux - SSH 到远程服务器

linux - 仅使用 awk 或其他文件处理实用程序处理文件的 UNIX(AIX) 脚本

C 在不使用缓冲区的情况下流式传输 : Copy data from one stream to another directly,