set term wxt 0 size 640,480 title 'PlotPop.plt'
set datafile separator ','
set size square
set key outside
set style fill transparent solid 0.25
set style data histograms
set style histogram rowstacked gap 5
set key autotitle columnheader
set xzeroaxis linewidth 2
set xtics rotate by 270 rangelimited
set ytics nomirror rangelimited
set ylabel 'Population [millions]' rotate by 270
#set ytics ("10"10,"5"5,"0"0,"5"-5,"10"-10) rotate by 270
set ytics rotate by 270
plot '$0' using (column(4)/1e6):xtic(2) every ::2 title 'MALE', \
'$0' using (-column(5)/1e6):xtic(2) every ::2 title 'FEMALE'
> I can't find how to plot a histogram with horizontal boxes. The script
> below does fine for a population pyramid, printing it on paper only
> requires to rotate the paper by -90 degrees! It appears as if horizontal
> boxes are not possible?
That is correct. Horizontal boxes are not possible.
Gnuplot always plots the independent variable on the horizontal and the
dependent variable on the vertical.
You might want to look at: