结合YERRORBARS和可变点大小
我正在尝试绘制以下数据文件
#x y s err
1 1 0.1 0.2
2 2 0.2 0.2
3 3 0.3 0.2
4 4 0.4 0.2
5 5 0.5 0.2
6 6 0.6 0.2
7 7 0.7 0.2
8 8 0.8 0.2
9 9 0.9 0.2
10 10 1.0 0.2
,其中这些点具有由第3列给出的可变大小,并且在第4列中给出了错误。我可以
plot "test" u 1:2:3 pt 7 ps variable
plot "test" u 1:2:4 w yerrorbars pt 7
独立工作,给我这一点:
i.sstatic.net/be50b.png“ rel =“ nofollow noreferrer 当我尝试结合它们时,
plot "test" u 1:2:4:3 w yerrorbars pt 7 ps variable
我会得到一些非常奇怪的东西:
即使是陌生人,如果我尝试u 1:2:3:4
,我也会获得相同的输出。我的做法有什么问题吗?我可以手动将错误栏绘制为向量,但是如果可能的话,我更喜欢使用内置的错误栏样式。
I'm trying to plot the following data file
#x y s err
1 1 0.1 0.2
2 2 0.2 0.2
3 3 0.3 0.2
4 4 0.4 0.2
5 5 0.5 0.2
6 6 0.6 0.2
7 7 0.7 0.2
8 8 0.8 0.2
9 9 0.9 0.2
10 10 1.0 0.2
where the points have a variable size given by column 3 and the errors are given in column 4. I can get
plot "test" u 1:2:3 pt 7 ps variable
plot "test" u 1:2:4 w yerrorbars pt 7
to work independently, giving me this:
But when I try to combine them
plot "test" u 1:2:4:3 w yerrorbars pt 7 ps variable
I get something very strange:
yerrorbars
seems to be using column 4 as the y column and column 3 as the yerror column. Even stranger, I get the same output if I try u 1:2:3:4
. Is there something wrong with how I'm doing this? I can manually draw the errorbars as vectors, but I'd prefer to use the built-in errorbars style if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,为了提供3列以上并仍然使用Ydelta的单个值,您应该可以做
但是,正如您指出的那样,实际上这实际上并没有记录。
工作范围
一种替代方法是进行两次通过。首先绘制误差线线并抑制点,第二个用所需属性绘制点:
So in order to provide more than 3 columns and still use a single value for the ydelta, you should be able to do
However, as you point out this doesn't actually work as documented.
Work-around
An alternative is to make two passes; first plot the errorbar lines and suppress the points, second plot the point with the desired properties :