如何解决带间距的Gnuplot多人yerrorbar
我正在尝试为每个xtick设置多个yerrorbar。到目前为止,我可以显示所有错误栏,但它们显示在另一个上方。我想将它们隔开一些空间,有点像直方图,但没有直方图列。
数据文件的格式如下:
xtick avg min max avg2 min2 max2 avg3 min3 max3 ...
Gnuplot文件:
set format y "%.0f"
set xtics nomirror rotate by -45 autojustify
set ytics nomirror
set logscale y
set key outside right center Left
set size 1,1
set term png size 1000,400
set output "gedf_bytasks.png"
set datafile sep ' '
set datafile missing '-'
set datafile commentschars '#'
plot for [i=2:14:3] 'file.dat' using 0:i:i+1:i+2:xticlabels(1) with yerrorbars title columnhead(i)
输出: Ouput
从输出图像中,我希望并排显示蓝色和黄色错误栏。有想法吗?
欢呼
解决方法
总是在您最终发布问题时才找到答案...
使用How to combine two box-whisker plots into one using gnuplot,我有:
plot 'file.dat' using ($1+0.2):2:14:xticlabels(1) linetype 3 notitle,\
for [i=2:14:3] '' using ($1+i*0.20):i:i+1:i+2 with yerrorbars title columnhead(i)
像护身符一样工作。
欢呼
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。