|
From: theozh <th...@gm...> - 2017-10-27 21:25:13
|
Hi,
Is there maybe a simple way to place the values on top of
in a column stacked histogram?
The following example does not place the labels at the right
y-positions, i.e. ideally centered within the different portions.
For this you would need to somehow sum up the previous values. I do not
see how...
Any hints are appreciated!
Theo.
###### gnuplot code start
reset
$Data <<EOD
XXX Header1 Header2
one 10 50
two 20 30
three 30 15
four 40 5
EOD
set style data histogram
set style histogram columnstacked
set style fill solid border -1
set boxwidth 0.75
plot $Data u 2 ti col , '' u 3:key(1) ti col, \
'' u (0):2:2 with labels notitle, '' u (1):3:2 with labels notitle
###### gnuplot code end
|