# This file: http://user.it.uu.se/~embe8573/everest-plot/everest.gpi set terminal png size 800,600 font "cm-super" datastring = sprintf("%s", data) set xtics 1 font ",8" rotate by 90 if (datastring eq "early.dat") { set ytics 1 set key left top height 1 set title font ",14" "Mount Everest: Framgångsrika bestigningar, dödsfall" set xtics offset 0.2,graph -0.0475 set yrange [:33] # set yrange [0.01:33] # hack not to show 0 as labels, # also to have labels within border # obviously ugly to have this hard coded } else { set ytics 20 unset key set xtics offset 0.2,graph -0.045 set yrange [:650] # set yrange [0.01:650] # ditto } set ytics font ",6" set grid set style data histogram set style fill solid 1.0 border set linetype 1 linecolor rgb "gray" set linetype 2 linecolor rgb "black" # won't do - makes the bars overlap long before they get wide enough: # set boxwidth 1.0 relative # set boxwidth 1.5 plot datastring \ using 2:xticlabels(1) title column, \ '' using 3:xticlabels(1) title column # '' using 0:2:2 with labels font ",6" center offset -1.5,0.5 notitle, \ # '' using 0:3:3 with labels font ",6" center offset -1.1,0.5 notitle