One possibity is to use the boxxyerrorbars
plotting style:
reset
set ylabel "dBm"
set xlabel "Channel"
set style fill solid
set key off
set style data boxxyerrorbars
set xtics 1
set autoscale xfix
set offset 0.5,0.5,0,0
ylow = -100
plot for [i=3:1:-1] sprintf("RR%d", i) using 1:(0.5*($2+ylow)):(0.3):(0.5*($2-ylow)) lt i
Here, I used a fixed lower y
-value, but you could also extract it from the data file with stats
and do some other tweaking.
In the using
statement, the second column gives the box center, which is the mean of actual y
-value and the lower boundary, the third column is x
-delta (half of the actual box width), and the fourth column is y
-delta.
With some more data values, this gives: