formatting - Gnuplot 平滑置信区间线而不是误差线

我希望在我的数据线上方和下方有一条 95% 的置信区间线 - 而不是每个点的垂直条。

有没有一种方法可以在 gnuplot 中做到这一点而无需绘制另一条线?还是我需要绘制另一条线,然后适本地标记它?

最佳答案

您可以使用 filledcurves 样式来填充 95% 置信度的区域。考虑示例数据文件 data.dat 的内容:

# x y   ylow yhigh
1   3   2.6  3.5
2   5   4    6
3   4   3.2  4.3
4   3.5 3.3  3.7

并用脚本绘制它

set style fill transparent solid 0.2 noborder
plot 'data.dat' using 1:3:4 with filledcurves title '95% confidence', \
     '' using 1:2 with lp lt 1 pt 7 ps 1.5 lw 3 title 'mean value'

得到

https://stackoverflow.com/questions/25512006/

相关文章:

formatting - JSON.Net 将 XML 序列化为 JSON 驼峰式案例

c# - DataGridViewCheckBoxColumn : FormatException

html - 用于 HTML 和 CSS 中的双面打印的甚至分页符

forms - 如何在 Laravel 中处理日期输入

xml - 如何使用 gVim 格式化未格式化的 XML 文档?

Python 浮点格式 - 类似于 "g",但数字更多

ios - iPhone : How to get number from string with

vim - 使用 Vim,是否有更有效的方法来根据这个最佳实践来格式化 LaTeX 段落?

c# - 使用 String.Format 时,如果字符串值不为 null 或为空,是否有一种简单的

formatting - 如何在我的博客文章中使用 stackoverflow 样式标记?