我试图在 gnuplot 中取得 eps 和 pdf 终端之间某种一致的输出。 问题在于它们似乎对大小单位的理解不同; 相同的英寸指定大小将导致 pdf 输出的字体大小大得多 :
set terminal postscript eps enhanced colour size 10in,8in font Arial-Bold,14
set output my_eps.eps
set title My plot
plot sin(x) notitle
set terminal pdfcairo size 10in,8in font Arial-Bold,14
set output my_pdf.pdf
replot
.pdf 中的文字要大得多, 图形也缩窄。 但是, 如果我将eps 的大小单位修改为 cm :
set terminal postscript eps enhanced colour size 10cm,8cm font Arial-Bold,14
########
set output my_eps.eps
set title My plot
plot sin(x) notitle
set terminal pdfcairo size 10in,8in font Arial-Bold,14
set output my_pdf.pdf
replot
输出与错误单位看起来相同( 在某些差值错误之内 ) 。 这是巧合吗? 这里发生了什么?
测试结果为Gnuplot 4.4(3级) Ubuntu 11.10。
(我知道我可以使用一些工具在eps和pdf之间转换, 这样它们就会相同, 但我想了解在gnuplot中发生了什么。)