-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathworks.gpi
78 lines (67 loc) · 2.47 KB
/
works.gpi
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
reset
set datafile separator "\t"
set encoding utf8
FONT="Arial,9"
LFONT="Arial,13"
set grid lt 1 lw .5 lc rgb "#dddddd"
set xtics nomirror
set boxwidth 0.5
set style fill solid
#set xtics rotate by 45 right
set ylabel font LFONT "Fontanes Werk" offset screen .21
set lmargin at screen 0.6
set xlabel font LFONT 'Zeichenanzahl'
set term png enhanced size 800,600 font "Arial,10" lw 2
set out "works_textlen.png"
plot "< sort -t'\t' -nk2 works.tsv" using 2:0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_textlen.svg"
replot
set xlabel font LFONT 'Anzahl Bearbeiter'
set term png enhanced size 800,600 font FONT lw 2
set out "works_contributors.png"
plot "< sort -t'\t' -nk3 works.tsv" using 3:0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_contributors.svg"
replot
set xlabel font LFONT 'Anzahl Überarbeitungen'
set term png enhanced size 800,600 font FONT lw 2
set out "works_revisions.png"
plot "< sort -t'\t' -nk4 works.tsv" using 4:0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_revisions.svg"
replot
set xlabel font LFONT 'Anzahl Backlinks'
set term png enhanced size 800,600 font FONT lw 2
set out "works_backlinks.png"
plot "< sort -t'\t' -nk9 works.tsv" using 9:0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_backlinks.svg"
replot
set xlabel font LFONT 'Anzahl Seitenzugriffe'
set term png enhanced size 800,600 font FONT lw 2
set out "works_pageviews.png"
plot "< sort -t'\t' -nk13 works.tsv" using 13:0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_pageviews.svg"
replot
set xlabel font LFONT 'Anzahl Sprachversionen'
set term png enhanced size 800,600 font FONT lw 2
set out "works_languages.png"
# add one to include the current language edition
plot "< sort -t'\t' -nk7 works.tsv" using ($7+1):0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_languages.svg"
replot
set xlabel font LFONT 'Jahr der Erstellung der Seite'
set xdata time
# 2002-05-13T13:59:54Z
set timefmt '%Y-%m-%dT%H:%M:%SZ'
set format x '%Y'
set term png enhanced size 800,600 font FONT lw 2
set out "works_firstrev.png"
plot "< sort -t'\t' -rk11 works.tsv" using 11:0:ytic(1) title '' with p pt 7
set term svg size 640,480 dynamic enhanced font FONT lw 2
set out "works_firstrev.svg"
replot
set output