4 set term postscript eps color size 16cm,9cm 16
8 min = "lc rgb 'gray20'"
9 std = "lc rgb 'gray50'"
10 max = "lc rgb 'gray90'"
13 set style histogram rows title offset character 2, 0.25, 0
14 set style fill solid 1.00 border rgb 'black'
15 set style data histograms
16 set boxwidth 0.8 absolute
17 set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0,0.3,0
21 set datafile separator ','
24 #set ylabel "$ {ylabel}$"
25 #set xlabel font "/usr/share/fonts/truetype/msttcorefonts/arial.ttf,9"
31 emit('title "%s"' % name if i == 0 else 'notitle')
33 emit(', \\' if i != len(progs)-1 else '')
37 no_neg(x)=(x < 0) ? 0 : x
38 only_neg(x)=(x < 0) ? x : 0
39 plot ${ for i, name in enumerate(progs): }$ \
40 newhistogram '${name}$' at ${at(i)}$, '${files[i]}$' \
41 using (no_neg($2+only_neg($3-$2-$5))) ${title(i, 'min')}$ lt 1 @min, \
42 '' using (no_neg($3-$2-$5)) notitle lt 1 @max, \
43 '' using ($5):xtic(1) ${title(i, 'media+/-dstd')}$ lt 1 @std, \
44 '' using ($5+only_neg($4-$3-$5)) notitle lt 1 @std, \
45 '' using (no_neg($4-$3-$5)) ${title(i, 'max')}$ lt 1 @max ${end(i)}$