2017-04-19 42 views
0

我的gnuplot的將不積與errorlines

1 0.1 0.05 0.15 0.2 0.11 0.32 
2 0.2 0.07 0.30 0.4 0.23 0.52 
4 0.3 0.19 0.40 0.6 0.45 0.65 

形式有一個數據文件,酒吧和我使用yerrorlines

set xtics ("1" 0, "2" 1, "4" 2) 
plot 'data.dat' u 0:2:3:4 w yerrorb lc rgb 'gray30' ti 'label1', \ 
    '' u 0:5:6:7 w yerrorb lc rgb 'gray50' ti 'label2' 

理想策劃我想與histogram風格繪製和錯誤條,但我不能讓它工作。

我在做什麼錯?

回答

0

試試這個

set boxwidth 1.0 absolute 
set style fill pattern 3 border 0 
set style histogram errorbars 
set style data histogram 

plot 'data.dat' u 2:3:4:xtic(1) ti 'label1', \ 
    '' u 5:6:7:xtic(1) ti 'label2'