-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverview.gnuplot
executable file
·74 lines (49 loc) · 2.93 KB
/
overview.gnuplot
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
#!/usr/bin/gnuplot
# To give the input file name on the command line call it like this:
# gnuplot -e "filename='<filename>'" overview.gnuplot
set terminal png size 1200,900
set xlabel "# grid elements"
set ylabel "time [s]"
set grid
if (!exists("filename")) filename='overview.csv'
set datafile separator ";"
set logscale xy 10
set key left top Left
filename_out=filename.".png"
set output filename_out
#set title "Foo"
set xrange[0.5:*]
plot \
filename using 4:( strcol(2) eq "smoothen" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen", \
filename using 4:( strcol(2) eq "smoothen_inner" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen inner", \
filename using 4:( strcol(2) eq "smoothen_outer" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen outer", \
filename using 4:( strcol(2) eq "scaledown" ? $7 : 1/0 ):8:9 with yerrorbars t "scaledown", \
filename using 4:( strcol(2) eq "scaleup" ? $7 : 1/0 ):8:9 with yerrorbars t "scaleup", \
filename using 4:( strcol(2) eq "main" ? $7 : 1/0 ):8:9 with yerrorbars t "main", \
filename using 4:( strcol(2) eq "setup" ? $7 : 1/0 ):8:9 with yerrorbars t "setup", \
filename using 4:( strcol(2) eq "dash::init" ? $7 : 1/0 ):8:9 with yerrorbars t "dash::init", \
filename using 4:( strcol(2) eq "dash::finalize" ? $7 : 1/0 ):8:9 with yerrorbars t "dash::finalize"
filename_out=filename.".detail.png"
set output filename_out
#set title "Foo"
set xrange[0.5:*]
plot \
filename using 4:( strcol(2) eq "smoothen" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen", \
filename using 4:( strcol(2) eq "smoothen_inner" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen inner", \
filename using 4:( strcol(2) eq "smoothen_outer" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen outer", \
filename using 4:( strcol(2) eq "smoothen_wait" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen wait", \
filename using 4:( strcol(2) eq "smoothen_wait_res" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen wait res", \
filename using 4:( strcol(2) eq "smoothen_collect" ? $7 : 1/0 ):8:9 with yerrorbars t "smoothen collect", \
filename using 4:( strcol(2) eq "scaledown" ? $7 : 1/0 ):8:9 with yerrorbars t "scaledown", \
filename using 4:( strcol(2) eq "scaleup" ? $7 : 1/0 ):8:9 with yerrorbars t "scaleup"
filename_out=filename.".flops.png"
set output filename_out
#set title "Foo"
set ylabel "Speed [Flop/s]"
set xrange[0.5:*]
plot \
filename using 4:( strcol(2) eq "smoothen" ? $5/$7 : 1/0 ):($5/$8):($5/$9) with yerrorbars t "smoothen", \
filename using 4:( strcol(2) eq "smoothen_inner" ? $5/$7 : 1/0 ):($5/$8):($5/$9) with yerrorbars t "smoothen inner", \
filename using 4:( strcol(2) eq "smoothen_outer" ? $5/$7 : 1/0 ):($5/$8):($5/$9) with yerrorbars t "smoothen outer", \
filename using 4:( strcol(2) eq "scaledown" ? $5/$7 : 1/0 ):($5/$8):($5/$9) with yerrorbars t "scaledown", \
filename using 4:( strcol(2) eq "scaleup" ? $5/$7 : 1/0 ):($5/$8):($5/$9) with yerrorbars t "scaleup"