Gnuplot:具有置信区间的线点 [英] Gnuplot: linespoint with confidence interval

查看:120
本文介绍了Gnuplot:具有置信区间的线点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在跟踪数据:

我想绘制一个图表,显示所有x与线(线点)相关的均值,并且还显示所有置信区间[ci_lower,ci_upper].我设法用2个图来做到这一点.

I want to plot a graph shows for all x the mean connected with lines (linespoint) and also showing all the confidence interval [ci_lower, ci_upper]. I managed to do that using 2 plots.

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

但是使用两种颜色看起来并不好,我觉得应该有一种方法可以完成一次绘图.

However it doesn't look nice with two colors and I have the feeling that there should be a way to do that with a single plot.

解决方案的代码是什么?

What's the solution code to that?

最好, 会

推荐答案

我认为您正在寻找yerrorlines.也许以下示例可以为您提供帮助:

I think you are looking for the yerrorlines. Maybe the following example can help you:

Data.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

GnuplotFile:

GnuplotFile:

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

这篇关于Gnuplot:具有置信区间的线点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆