-
Notifications
You must be signed in to change notification settings - Fork 10
/
cve-age.plot
56 lines (48 loc) · 1.62 KB
/
cve-age.plot
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
# SVG output
set terminal svg size 1920,1080 dynamic font ",24"
# title
set title "CVE age in code until fixed" font ",48"
# where's the legend
set key top left
set key font ",20"
# Identify the axes
set ylabel "Number of days"
set grid
unset xtics
unset border
set bmargin 4.0
# for the boxes
set boxwidth 0.8
set style fill solid
set style line 1 \
linecolor rgb '#c08040' \
linetype 1 dt 2 linewidth 4
set style line 2 \
linecolor rgb '#0080c0' \
linetype 1 linewidth 1
set style line 3 \
linecolor rgb '#00a040' \
linetype 1 linewidth 3
set style line 4 \
linecolor rgb '#ff0040' \
linetype 1 linewidth 1
set style line 5 \
linecolor rgb '#c0c040' \
linetype 1 linewidth 1
set style line 6 \
linecolor rgb '#808000' \
linetype 1 linewidth 1
set style line 7 \
linecolor rgb '#800080' \
linetype 1 linewidth 1
set pixmap 1 "stats/curl-symbol-light.png"
set pixmap 1 at screen 0.35, 0.30 width screen 0.30 behind
set datafile separator ";"
plot 'tmp/cve-age.csv' using 6:3 with boxes title 'Individual flaw' lc "#c0c0ff", \
'tmp/cve-age.csv' using 6:4 with lines title 'Project age' linestyle 1, \
'tmp/cve-age.csv' using 6:10 with lines title 'Median' linestyle 3,\
'tmp/cve-age.csv' using 6:11 with lines title 'Median C-mistakes' linestyle 2,\
'tmp/cve-age.csv' using 6:12 with lines title 'Median high/critical' linestyle 4,\
'tmp/cve-age.csv' using 6:13 with lines title 'Median non-C-mistakes' linestyle 6,\
'tmp/cve-age.csv' using 6:14 with lines title 'Median low/medium' linestyle 7
# 'tmp/cve-age.csv' using 6:0:1 with labels offset 0.1,-2.1 font ", 8" rotate by 90 title ''