Gnuplot-Multiplot自动缩放功能可相互两次显示x轴和y轴单位

时间:2018-10-31 15:43:32

标签: gnuplot

在Gnuplot中,我想借助multiplot在同一张图上显示2个图。显示屏工作正常,但重新显示缩放比例,并且将相同的单位放在一起,因为我使用自动缩放。

我的问题是,我如何只显示一次缩放?

这是我的代码:

set border 1023-128
set autoscale

set multiplot 
plot strDsDir.strInputFile using 1:($6/1000000) skip 1 w filledcurves x lc rgb "#00aa22"
replot strDsDir.strInputFile using 1:($7/1000000) skip 1 w filledcurves x lc rgb "#80e45f"
unset multiplot

我尝试在“绘图”和“重复绘图”之间取消设置自动缩放比例,但是随后我失去了自动缩放比例,并且图形滑动。

我也尝试取消设置xtics和ytics,但是后来我失去了上面的set border 1023-128

这是图片,我的单位在彼此之间相互错位: enter image description here

这是图片,单位彼此不间隔,但我的“设置边框选项”消失了: enter image description here

我试图显示的数据集无关紧要。 谢谢。

1 个答案:

答案 0 :(得分:1)

多重绘图的目的通常是相互绘制多个绘图。如果要在单个绘图中绘制多个曲线,请使用单个绘图命令,例如plot x, x**2

plot strDsDir.strInputFile using 1:($6/1e6) skip 1 w filledcurves x lc rgb "#00aa22", \
    "" using 1:($7/1e6) skip 1 w filledcurves x lc rgb "#80e45f"
相关问题