|
From: theozh <th...@gm...> - 2016-04-15 18:30:58
|
Some time ago, I also searched for a horizontal histogram. It seems that
it doesn't exist in gnuplot.
The workaround I am still surviving with is "with boxxyerrorbars" and no
painful rotations...
Try the following code:
reset
# set title "Téléop"
set encoding utf8
set terminal wxt size 600,350
set xrange [0:30]
set yrange [*:*] reverse
plot 'data.dat' \
u (0):($0):(0):($2+$3):($0-0.4):($0+0.4):ytic(1) axes x1y1 with
boxxyerrorbars fs solid lc rgb "red" t "à envoyé",\
'' u (0):($0):(0):($2):($0-0.4):($0+0.4) axes x1y1 with boxxyerrorbars
fs solid lc rgb "green" t "envoyer",\
'' u ($2+$3):0:2 with labels offset 2,0 tc rgb "green" not,\
'' u ($2+$3):0:3 with labels offset 4,0 tc rgb "red" not,\
|