Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gnuplot 如何使用multiplot为单独的绘图设置不同的高度_Gnuplot - Fatal编程技术网

Gnuplot 如何使用multiplot为单独的绘图设置不同的高度

Gnuplot 如何使用multiplot为单独的绘图设置不同的高度,gnuplot,Gnuplot,如何使用设置大小,在多点模式下为两个或多个绘图设置不同的高度,以确保绘图x轴的正确排列?以下问题:我有一个热图图和另一个具有相同时间轴的linespoint图。热图图包含更多信息,应使用画布高度的80%。使用 set multiplot layout 2,1 margins .1,.8,.05,.95 spacing .05 将地块设置为完美的布局,但不可能改变高度;或者至少我没能把它做好。下面是两个使用gnuplot演示页面中的代码的示例: $map2 << EOD 0 0 5

如何使用
设置大小,
在多点模式下为两个或多个绘图设置不同的高度,以确保绘图x轴的正确排列?以下问题:我有一个热图图和另一个具有相同时间轴的linespoint图。热图图包含更多信息,应使用画布高度的80%。使用

set multiplot layout 2,1 margins .1,.8,.05,.95 spacing .05
将地块设置为完美的布局,但不可能改变高度;或者至少我没能把它做好。下面是两个使用gnuplot演示页面中的代码的示例:

$map2 << EOD
0 0 5
0 1 4
0 2 3
0 3 1
0 4 0

1 0 2
1 1 2
1 2 0
1 3 0
1 4 1

2 0 0
2 1 0
2 2 0
2 3 1
2 4 0

3 0 0
3 1 0
3 2 0
3 3 2
3 4 3

4 0 0
4 1 1
4 2 2
4 3 4
4 4 3
EOD 

set multiplot layout 2,1 margins .1,.8,.05,.95 spacing .05
plot '$map2' using 2:1:3 with image
plot sin(x)*cos(x)**2, tan(x)
unset multiplot
让我这样画:


我希望我能解释我的问题,非常感谢你的帮助!非常感谢

如果我理解了您的问题,您只需更改
rmargin
lmargin

set size 1,1
set origin 0,0

unset bmargin, unset lmargin, unset tmargin, unset rmargin
set multiplot

set size 1,0.8
set origin 0,0.2
set lmargin at screen 0.1
set tmargin at screen 0.95
set rmargin at screen 0.9


plot 'map2.dat' using 2:1:3 with image

set size 1,0.2
set origin 0,0
set tmargin 0
set lmargin at screen 0.1
set bmargin at screen 0.1
set rmargin at screen 0.9

plot[GPVAL_X_MIN:GPVAL_X_MAX] sin(x)*cos(x)**2, tan(x)

unset multiplot
set size 1,1
set origin 0,0

unset bmargin, unset lmargin, unset tmargin, unset rmargin
set multiplot

set size 1,0.8
set origin 0,0.2
set lmargin at screen 0.1
set tmargin at screen 0.95
set rmargin at screen 0.9


plot 'map2.dat' using 2:1:3 with image

set size 1,0.2
set origin 0,0
set tmargin 0
set lmargin at screen 0.1
set bmargin at screen 0.1
set rmargin at screen 0.9

plot[GPVAL_X_MIN:GPVAL_X_MAX] sin(x)*cos(x)**2, tan(x)

unset multiplot