我有5个子图,其中只有4个显示。代码片段如下,因为原始代码很长;我无法增加屏幕尺寸以适应第5幅情节,因此,只显示前四个:
set output 'test.png'
set size 1.75,1.75
set terminal png font "/Library/Fonts/Times New Roman Bold.ttf, 10" size 1000,700
set origin 0,0
set multiplot
#1st
set size 0.5,0.5
set origin 0,0.5
...
#2nd
set size 0.5,0.5
set origin 0,0
...
#3rd
set size 0.5,0.5
set origin 0.5,0
...
#4th
set size 0.5,0.5
set origin 0.5,0.5
...
#5th, and this one is not showing up
set size 0.5,0.5
set origin 1,0.5
...
我哪里错了?
答案 0 :(得分:6)
您正在将第五个绘图的原点设置为1, 0.5
。这让gnuplot将它绘制在窗口之外
试试这个安排:
set size 1, 0.2
#first plot
set origin 0, 0.8
plot ...
#second plot
set origin 0, 0.6
plot ...
#third plot
set origin 0, 0.4
plot ...
#fourth plot
set origin 0, 0.2
plot ...
#fifth plot
set origin 0, 0.0
plot ...
我没有对上述内容进行过测试,但我希望你能了解它背后的想法 也许有关multiplot的文档也很有帮助。