作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
只是想习惯 gnuplot。我在这个网站上搜索了几页寻找答案,阅读了文档(4.6),但仍然没有找到答案。说我有一个这样的数据文件:
0.0 0
1.0 25
2.0 55
3.0 110
4.0 456
5.0 554
6.0 345
plot 'exp.dat' u 1:2 w labels point offset character 0,character 1 tc rgb "blue"
但它没有用。它给了我一个
Not enough columns for this style
响应。我确定这是我正在做的事情,但我不确定是什么。任何帮助将不胜感激。谢谢。
最佳答案
我认为您缺少标签字符串。你可以做
flabel(y)=sprintf("y=%.2f", y)
plot '-' u 1:2:(flabel($2)) w labels point offset character 0,character 1 tc rgb "blue"
0.0 0
1.0 25
2.0 55
3.0 110
4.0 456
5.0 554
6.0 345
关于gnuplot - 标记单个数据点 gnuplot,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17520684/
我是一名优秀的程序员,十分优秀!