-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcreate_topics.gp
45 lines (31 loc) · 1.05 KB
/
create_topics.gp
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
unset border
unset tics
unset key
base=12
scale(string,size) = sprintf("{/=%d %s}", size+base,string)
set tics font "Fira Sans Bold"
unset ytics
set xtics scale 0 out
set yrange [-0.5:4]
set terminal svg size 20000,400 fname "Crimson" enhanced
set output "/tmp/Complete.svg"
set multiplot layout 1,59 margins 0.0,1.00,0.1,0.90 spacing 0
do for [i=0:58] {
#out = sprintf("/tmp/%02d.svg", i)
#set output out
plot "Topics_gnuplot.txt" using 1:(4-$2):(scale(stringcolumn(4),$5*10+10)):xticlabel(3) index i with labels
}
unset multiplot
set terminal svg size 200,400 fname "Crimson" enhanced
do for [i=0:58] {
out = sprintf("/tmp/%02d.svg", i)
set output out
plot "Topics_gnuplot.txt" using 1:(4-$2):(scale(stringcolumn(4),$5*10+10)):xticlabel(3) index i with labels
set output
}
set terminal svg size 1000,200 fname "Crimson" enhanced
set output "/tmp/Last_eight.svg"
set multiplot layout 1,8 margins 0,1,0.2,0.9 spacing 0
do for [i=51:58] {
plot "Topics_gnuplot.txt" using 1:(4-$2):(scale(stringcolumn(4),$5*10+10)):xticlabel(3) index i with labels
}