-
Notifications
You must be signed in to change notification settings - Fork 4
/
plotdata.plt
executable file
·41 lines (31 loc) · 1.11 KB
/
plotdata.plt
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
#!/usr/bin/env gnuplot
# Plots results of wikidata-analytics
# Data must bee prepared as table in files
# results/claimsperitem-*
# results/revisionsperitem-*
# Script has to be updated every time
### Distribution of Claims ###
set xlabel "Number of claims"
set ylabel "Number of items"
set title "Distribution of the number of claims"
set logscale y
set xrange [0:40]
set terminal 'svg'
set output 'claimsperitem.svg'
plot 'results/claimsperitem-Feb28' smooth uniq with lines title "28. Feb", \
'results/claimsperitem-Mar16' smooth uniq with lines title "16. Mar", \
'results/claimsperitem-Apr02' smooth uniq with lines title "02. Apr", \
'results/claimsperitem-Apr30' smooth uniq with lines title "30. Apr"
unset output
reset
#### Distribution of revisions ###
set xlabel "Number of revisions"
set ylabel "Number of items"
set title "Distribution of the number of revisions"
set logscale y
set xrange [0:300]
set terminal 'svg'
set output 'revisionsperitem.svg'
plot 'results/revisionsperitem-Feb28' with lines title "28. Feb", \
'results/revisionsperitem-Mar16' with lines title "16. Mar"
unset output