gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-04 05:09:10 24 4
gpt4 key购买 nike

我在 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com