Gnuplot 使用multiplot时图表会翻转

Gnuplot 使用multiplot时图表会翻转,gnuplot,Gnuplot,我想用multiplot绘制两个图表(读取相同的数据点)。目的是将第二个(较小)图表放在第一个(较大)图表的右侧 代码是 set term post eps enhanced color blacktext size 4,4 solid "Times-Roman" 14 set output 'cla.ps' set multiplot # draw bottom and left lines unset border unset xtics unset ytics set border 3

我想用multiplot绘制两个图表(读取相同的数据点)。目的是将第二个(较小)图表放在第一个(较大)图表的右侧

代码是

set term post eps enhanced color blacktext size 4,4 solid "Times-Roman" 14
set output 'cla.ps'

set multiplot

# draw bottom and left lines
unset border
unset xtics
unset ytics
set border 3


# increasing the canvas size
set rmargin 50
set tmargin 2

# put the big chart, it will not use the whole space
set origin 0,0
set size 1.2,0.5

plot 'test.txt' u 1 with points lc rgb "black" 

# put the small char in the right
set origin 0.6,0.2
set size 0.2,0.2
plot 'test.txt' u 1 with points lc rgb "black" 

# always unset multiplot
unset multiplot
问题是,第二张图表以镜像方式显示(水平翻转)。但我没有这样的选择。我怎样才能解决这个问题


这应该会给您一个很好的警告,说明:
警告:终端画布区域太小,无法容纳绘图。检查打印边界和字体大小。

使用
set rmargin 50
可以将右边距设置为50个字符宽度。这也适用于第二个绘图,除非使用例如
set rmargin-1
将其重置为自动计算

但我认为设置大小和rmargin没有任何意义。设置rmargin不会像您在评论中建议的那样增加画布大小

以下是一个工作示例:

set term post eps enhanced color blacktext size 4,2 solid "Times-Roman" 14
set output 'cla.ps'

set multiplot

# draw bottom and left lines
unset tics
set border 3

# put the big chart, it will not use the whole space
set origin 0,0
set size 0.8,1

plot x**2

# put the small char in the right
set origin 0.75,0.2
set size 0.25,0.3
plot x

# always unset multiplot
unset multiplot
这将为您提供输出(使用4.6.5进行测试):


但我同意边距可以改变画布大小。不,画布大小由
设置终端postscript大小4,2
给出,它将画布大小(即图像大小)设置为4英寸宽和2英寸高。如果使用
set rmargin 5
,则相对于画布大小缩小打印大小。