#!/usr/bin/gnuplot # Terminal set term postscript eps color size 16cm,9cm 16 # Style macros set macros min = "lc rgb 'gray20'" std = "lc rgb 'gray50'" max = "lc rgb 'gray90'" # Style set style histogram rows title offset character 2, 0.25, 0 set style fill solid 1.00 border rgb 'black' set style data histograms set boxwidth 0.8 absolute set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0,0.3,0 set yrange [0:1.18] # Data format set datafile separator ',' # Labels #set ylabel "$ {ylabel}$" #set xlabel font "/usr/share/fonts/truetype/msttcorefonts/arial.ttf,9" # Plot ${ def title(i, name): emit('title "%s"' % name if i == 0 else 'notitle') def end(i): emit(', \\' if i != len(progs)-1 else '') def at(i): emit(i*4) }$ no_neg(x)=(x < 0) ? 0 : x only_neg(x)=(x < 0) ? x : 0 plot ${ for i, name in enumerate(progs): }$ \ newhistogram '${name}$' at ${at(i)}$, '${files[i]}$' \ using (no_neg($2+only_neg($3-$2-$5))) ${title(i, 'min')}$ lt 1 @min, \ '' using (no_neg($3-$2-$5)) notitle lt 1 @max, \ '' using ($5):xtic(1) ${title(i, 'media+/-dstd')}$ lt 1 @std, \ '' using ($5+only_neg($4-$3-$5)) notitle lt 1 @std, \ '' using (no_neg($4-$3-$5)) ${title(i, 'max')}$ lt 1 @max ${end(i)}$ ${:}$