-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathplot-template_still_logscale.gnu
78 lines (63 loc) · 3.97 KB
/
plot-template_still_logscale.gnu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set terminal pngcairo size 1280,900
set output 'compression-still-CATEGORY.png'
bm = 0.10
lm = 0.10
rm = 0.95
gap = 0.02
size = 0.8
kk = 0.8 # relative height of bottom plot
y1 = LOWER; y2 = 1.2; y3 = 1.2; y4 = UPPER
x1 = 0
x2 = NUMBER
set multiplot
set border 1+2+8
set xtics nomirror
set ytics nomirror
set ytics 0.1
set grid ytics back
set grid xtics back
set lmargin at screen lm
set rmargin at screen rm
set bmargin at screen bm
set tmargin at screen bm + size * kk
set key bottom right
set xlabel "images, sorted for each algorithm from best to worst relative compression"
set ylabel "relative size, compared to PNG (ImageMagick 6.8.9-9 convert -quality 95)"
plot [x1:x2][y1:y2]\
'<sort -n results/*still.JP2.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#000088" title "JPEG 2000",\
'<sort -n results/*still.JXR.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#888800" title "JXR (no alpha!)",\
'<sort -n results/*still.JPEG.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#FFFF00" title "JPEG (lossy! no alpha!)",\
'<sort -n results/*still.PNG-Adam7.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#00FF00" dt 3 title "PNG, Adam7",\
'<sort -n results/*still.PNG.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#008800" dt 3 title "PNG (reference)",\
'<sort -n results/*still.optiPNG-Adam7.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#00FF00" dt 2 title "PNG, Adam7, optipng",\
'<sort -n results/*still.optiPNG.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#008800" dt 2 title "PNG, optipng",\
'<sort -n results/*still.zopfliPNG.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#008800" dt 1 title "PNG, zopflipng",\
'<sort -n results/*still.BPG.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#AA00AA" lt 1 title "BPG",\
'<sort -n results/*still.WebP.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#00AAAA" lt 1 title "WebP (stable)",\
'<sort -n results/*still.WebP2.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#00AAFF" dt 2 title "WebP (dev)",\
'<sort -n results/*still.FLIF.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#880000" lt 1 title "FLIF",\
'<sort -n results/*still.FLIF-n.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#DD2200" lt 1 title "FLIF -n"
set title "Lossless image compression comparison, corpus: CATEGORY (NUMBER images)"
unset xtics
unset xlabel
unset ylabel
set border 2+4+8
set bmargin at screen bm + size * kk + gap
set tmargin at screen bm + size + gap
set key off
set logscale y
set ytics (1.1,1.5,2,3,4,8,16,32,UPPER)
plot [x1:x2][y3:y4]\
'<sort -n results/*still.JP2.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#000088" title "JPEG 2000",\
'<sort -n results/*still.JXR.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#888800" title "JXR (no alpha!)",\
'<sort -n results/*still.JPEG.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#FFFF00" title "JPEG (lossy! no alpha!)",\
'<sort -n results/*still.PNG-Adam7.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#00FF00" dt 3 title "PNG, Adam7",\
'<sort -n results/*still.PNG.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#008800" dt 3 title "PNG (reference)",\
'<sort -n results/*still.optiPNG-Adam7.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#00FF00" dt 2 title "PNG, Adam7, optipng",\
'<sort -n results/*still.optiPNG.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#008800" dt 2 title "PNG, optipng",\
'<sort -n results/*still.zopfliPNG.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#008800" dt 1 title "PNG, zopflipng",\
'<sort -n results/*still.BPG.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#AA00AA" lt 1 title "BPG",\
'<sort -n results/*still.WebP.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#00AAAA" lt 1 title "WebP (stable)",\
'<sort -n results/*still.WebP2.CATEGORY' using ($0):($1) with lines lw 2 lc rgb "#00AAFF" dt 2 title "WebP (dev)",\
'<sort -n results/*still.FLIF.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#880000" lt 1 title "FLIF",\
'<sort -n results/*still.FLIF-n.CATEGORY' using ($0):($1) with lines lw 3 lc rgb "#DD2200" lt 1 title "FLIF -n"