【问题标题】:Gnuplot - Multiplot autoscale displays x-axis and y-axis units twice on each otherGnuplot - 多图自动缩放在彼此上显示两次 x 轴和 y 轴单位
【发布时间】:2018-11-01 01:14:39
【问题描述】:

在 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

这是图片,我的单位彼此相撞:

这是图片,单位不会相互重叠,但我的“设置边框选项”消失了:

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

【问题讨论】:

    标签: gnuplot


    【解决方案1】:

    multiplot 的目的通常是将多个图并排绘制。如果您想在一个图中绘制多条曲线,请使用像 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"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-05-06
      • 2011-09-30
      • 2015-06-10
      • 1970-01-01
      • 1970-01-01
      • 2022-11-23
      相关资源
      最近更新 更多