multiplot gnuplot 中的一大两小图

One big and two small plots in multiplot gnuplot

我正在尝试使用 gnuplot(版本 5.0.1)

的多绘图模式在同一个 canvas 上绘制三个不同的绘图

我想要以特定方式排列这些地块:最终地块应显示 2 行,地块 A 位于上排,而地块 B 和 C 应并排出现在下排,就像下排我们有类似的东西:

"set multiplot layout 1,2"

如何实现? 提前致谢

您需要使用最多 "refined" 网格来绘制多图,在本例中为 2x2,然后指定每个图的大小。

set multiplot layout 2,2
set size 1,0.5 # the first one has to be larger
plot sin(1*x)
set multiplot next # we want to skip the second (upright position)
set size 0.5,0.5 # the second and third have to be 0.5x0.5 
plot sin(2*x)
plot sin(3*5)
unset multiplot

或者按照这里的建议 这样做可能更简单 upwards(6 行而不是 8 行!)但是你必须以相反的顺序指定图:

set multiplot layout 2,2 upwards
plot sin(3*x)
plot sin(2*x)
set size 1,0.5
plot sin(1*x)
unset multiplot