gnuplot<;lrtb>;边距0导致不需要的pdf输出

gnuplot<;lrtb>;边距0导致不需要的pdf输出,gnuplot,Gnuplot,我想使用边距0删除边距。但是,在创建的pdf中,左侧和顶部边框/轴可见,而底部和右侧则根据需要剪切 unset key set lmargin 0 set rmargin 0 set tmargin 0 set bmargin 0 plot sin(x) set output 'sinus.pdf' set terminal pdf transparent size 4cm,3cm set xrange [0:2*pi] replot 有办法解决这个问题吗?我不想只使用unset borde

我想使用
边距0
删除边距。但是,在创建的pdf中,左侧和顶部边框/轴可见,而底部和右侧则根据需要剪切

unset key
set lmargin 0
set rmargin 0
set tmargin 0
set bmargin 0
plot sin(x)
set output 'sinus.pdf'
set terminal pdf transparent size 4cm,3cm 
set xrange [0:2*pi]
replot
有办法解决这个问题吗?我不想只使用
unset border
unset tics
,因为我希望绘图水平/垂直居中(没有边框)。似乎
bmargin
rmargin
lmargin
tmargin
切断了更多的绘图

错误的输出如下所示:


Nevermind,将终端设置为
postscript eps
,然后将eps文件转换为pdf,解决了问题。但我仍然不明白为什么pdf格式的输出会导致这样的行为。这似乎是一个bug。我稍后会报告。好的,非常感谢。不过,将终端设置为
postscript eps
,然后将eps文件转换为pdf解决了问题。但我仍然不明白为什么pdf格式的输出会导致这样的行为。这似乎是一个bug。我稍后再报告。好的,非常感谢。