在Gnuplot输出中压缩的图例,标题和轴标签

问题描述 投票:0回答:1

我正在用gnuplot制作图形,并且似乎当我选择输出为pdf时,所有标签都被压缩在一起(单词中字母之间没有空格)

这是我的代码:

set term pdf
set out "spiral_r.pdf"

set log xy
set key left

set title "Distance to the center" font ",14"
set xlabel "i^{1/2}" font ",10"
set ylabel "Disctance" font ",10"

plot 'spiral.dat' u (sqrt($1)):(sqrt($2*$2+$3*$3)) w l title "Distance"

quit

这是输出output我正在得到。我不了解的部分是,如果我将输出更改为png,则same代码可以正常工作,但是我需要将输出显示在pdf中。

提前感谢。

gnuplot
1个回答
0
投票

这是由于错误的pango / cairo库版本引起的。如果将库升级或降级为工作版本,则gnuplot也会神奇地工作。

© www.soinside.com 2019 - 2024. All rights reserved.