【问题标题】:Legend, title and axis labels compressed in Gnuplot output在 Gnuplot 输出中压缩的图例、标题和轴标签
【发布时间】:2020-03-15 02:49:00
【问题描述】:

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

这是输出 我得到的。我不明白的部分是如果我将输出更改为 png same 代码工作正常,但我需要输出在 pdf.

提前致谢。

【问题讨论】:

    标签: gnuplot


    【解决方案1】:

    这是由于 pango/cairo 库版本错误造成的。如果您将库升级或降级到工作版本,那么 gnuplot 也会神奇地工作。

    详细的版本信息会因您的操作系统而异。先前报道的一项分析是,在 MacOS pango 上 1.43 很好,但 1.44 很差。如果您最近升级了 Mac,您可能会得到一个错误的库。

    https://sourceforge.net/p/gnuplot/bugs/2194/
    

    【讨论】:

    • pango/cairo 库是什么?以及如何升级它?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多