【问题标题】:Gnuplot: linespoint with confidence intervalGnuplot:带置信区间的线点
【发布时间】:2011-09-18 17:40:38
【问题描述】:

我有以下数据:

我想绘制一个图表,显示所有 x 与线 (linespoint) 连接的平均值,并显示所有置信区间 [ci_lower, ci_upper]。我设法使用 2 个地块做到了这一点。

set xrange [0:1100000]
set yrange [0:5000]
plot \
'2011-06-16_1n_result.txt' using 1:7 title '1 node' with lines, \
    '2011-06-16_1n_result.txt' using 1:7:10:11 notitle with errorbars

但是两种颜色看起来不太好,我觉得应该有一种方法可以用一个情节来做到这一点。

解决方案代码是什么?

最好, 会

【问题讨论】:

    标签: gnuplot confidence-interval


    【解决方案1】:

    我认为您正在寻找yerrorlines。也许下面的例子可以帮助你:

    示例

    数据.dat:

    x,   mean,  min,   max
    1,   0.40,  0.29,  0.44
    2,   0.44,  0.22,  0.65
    3,   0.26,  0.06,  0.50
    4,   0.30,  0.08,  0.67
    5,   0.53,  0.03,  0.88
    6,   0.43,  0.08,  0.97
    7,   0.37,  0.02,  0.91
    8,   0.53,  0.39,  0.60
    9,   0.51,  0.22,  0.86
    10,  0.55,  0.31,  0.80
    

    Gnuplot 文件:

    plot [0:11] "Data.dat" using 1:2:3:4 with yerrorlines
    

    【讨论】:

      猜你喜欢
      • 2014-10-20
      • 1970-01-01
      • 2019-08-29
      • 1970-01-01
      • 2015-08-06
      • 2021-06-23
      • 1970-01-01
      • 2016-08-27
      • 1970-01-01
      相关资源
      最近更新 更多