带有一个颜色框的Gnuplot多图 [英] Gnuplot multiplot with one colorbox
问题描述
我使用multiplot布局了3,1个地块。这三个图都具有相同的比例,因此我只想在右边距显示一个颜色框。但是,一旦我取消了前两个图的颜色框设置,三个图的大小就会不同。
谁能告诉我如何使用三个具有相同大小的地块来实现此目标吗?
您必须设置一个固定的右边距,例如在屏幕0.85处设置边距
。这会将图的右边界设置为图像尺寸的85%:</ p>
set multiplot layout 3,1
在屏幕上设置边距0.85
图x
图x
图x线调色板
未设置多图
设置输出
输出为4.6.3:
另请参阅相关问题
I have a layout of 3,1 plots using multiplot. All of the three plots have the same scales, so I just want to show one colorbox, on the right margin. However, once I unset the colorbox for the first two plot, the size of the three plot are different. Can anybody tell me how to implement this with the three plots have the same size?
You must set a fixed right margin with e.g. set rmargin at screen 0.85
. That sets the right border of the plot at 85% of the image size:
set multiplot layout 3,1
set rmargin at screen 0.85
plot x
plot x
plot x linecolor palette
unset multiplot
set output
Output with 4.6.3:
See also the related question multiplot - stacking 3 graphs on a larger canvas.
Generic solution for fixed margins
If you want a layout with one row and three columns, can use the multiplot
options margins
and spacing
to get three plots which have the same width:
set xlabel 'xlabel'
set ylabel 'ylabel'
set multiplot layout 1,3 margins 0.1,0.9,0.1,0.95 spacing 0.05
plot x
unset ylabel
plot x
plot x linecolor palette
unset multiplot
这篇关于带有一个颜色框的Gnuplot多图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!