在gnuplot中设置图形标题之间的间距

3

我有一段 gnuplot 生成 gif 文件的代码:

set terminal pngcairo font 'DroidSerif'
set output "summary2.gif"

set xtics font ", 15"
set ytics font ", 15"
set key font ",18"
set key top right
set xlabel "Data width in bytes" font ",20"
set ylabel "Summary size" font ",20"
set title "Size comparison" font ",25"

plot  "summary2.data" using 1:4 title "BF Complete" w lp,  "summary2.data" using 1:3 title "Labeled" w lp,  "summary2.data" using 1:5 title "Complete" w lp,  "summary2.data" using 1:2 title "BF" w lap

问题在于图表标题太大了,所以需要在它们之间添加一些间距。我该如何使其正常工作?

1
可能你也应该改变全局字体大小,因为它决定了以字符单位给出的行间距和其他一些位置。set terminal pngcairo font 'DroidSerif,15'。无论如何,你都需要进行一些调整,但可能会少一些。 - Christoph
1个回答

4

尝试使用set key spacing <一些数字>。增加<一些数字>的值应该会增加标题之间的距离。


很好的答案...我猜 <一些数字> 是要跳过的字符数。 - Many
通常我使用cairolatex终端,但我不知道如何处理间距,特别是在标签中使用数学和其他Latex格式时,所以我的策略就是“尝试一些数字,直到你喜欢结果为止”。 - Miguel

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接