2017-09-13 51 views

回答

0

您正在寻找boxxyerrorbars款式。

例如,给定一个数据文件test.dat与内容

#ymin ymax 
    2  4 
    3  6 
    1  4 
    2  3 

的gnuplot的命令

boxwidth = 0.5 
set style fill solid 
set yrange [0:8] 
plot "test.dat" u 0:(($1+$2)/2.):(boxwidth/2.):(($2-$1)/2.) w boxxyerrorbars 

enter image description here