This commit is contained in:
Daniel Lemire 2018-12-19 23:00:22 -05:00
parent 7417d4205b
commit 0ae0c711ff
2 changed files with 22 additions and 18 deletions

View File

@ -1,4 +1,4 @@
set term pdfcairo fontscale 0.7 noenhanced
set term pdfcairo fontscale 0.8 noenhanced
set output name
set boxwidth 0.8
set style fill solid
@ -21,37 +21,41 @@ set ytics nomirror
set yrange [0:]
#set key right top;
set key samplen 1 spacing 1.5 # font ",12"
set key width -2
set key maxrows 4
set key samplen 1 spacing 1 font ",10"
set key width -4
set key height -0.3
#set key horizontal invert
set key maxrows 8
set key noenhanced
set key Left at 14,4.2 #at 5.5,4
set key Left opaque at 14.2,4.2 #at 5.5,4
#set key right top
#set key outside
set key invert
set style data histograms
set style histogram rowstacked
set xtic rotate by 300 scale 1
set style line 1 lt rgb "#A00000"
set style line 2 lt rgb "#00A000"
set style line 3 lt rgb "orange"
set style line 4 lt rgb "#5060D0"
set style line 5 lt rgb "#0099FB"# "#00008B"
set style line 6 lt rgb "black"
set style line 1 lt rgb "#A00000" lw 2 ps 0
set style line 2 lt rgb "#00A000" lw 2
set style line 3 lt rgb "orange" lw 2
set style line 4 lt rgb "#5060D0" lw 2
set style line 5 lt rgb "#0099FB" lw 2# "#00008B"
set style line 6 lt rgb "black" lw 2
set style line 7 lt rgb "blue" lw 1 pt 1 ps 1
set style line 8 lt rgb "#5060D0" lw 1 pt 1 ps 1
clamp(a) = (a < 0) ? 0 : a
# plot filename using 3 t "stage 1" ls 2, '' using 4 t "stage 2" ls 3, '' using 5:xtic(1) t "stage 3" ls 1
plot filename using 9 t "1: no utf8" ls 1,\
'' using (clamp($3-$9)) t "1: just utf8" ls 2,\
'' using 4 t "stage 2" ls 3,\
'' using (clamp($23 + $17 - $5)) t "3: core" ls 4,\
'' using (clamp($5 - $23)) t "3: strings" ls 5,\
'' using (clamp($5 - $17)):xtic(1) t "3: numbers" ls 6
plot filename using 9 t " 1: no utf8" ls 1,\
'' using (clamp($3-$9)) t " 1: just utf8" ls 2,\
'' using 4 t " stage 2" ls 3,\
'' using (clamp($23 + $17 - $5)) t " 3: core" ls 4,\
'' using (clamp($5 - $23)) t " 3: strings" ls 5,\
'' using (clamp($5 - $17)):xtic(1) t " 3: numbers" ls 6