summaryrefslogtreecommitdiff
path: root/report/Figures/2.gnu
blob: 7312e56745a20b976dd7a9387e285871f8647f2e (plain)
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
#set term x11 persist
set term cairolatex pdf size 5in,3in
set output "fig42.tex"

set datafile separator ","
set datafile missing NaN

ptsize = 0.5

# R ColorBrewer theme (minus yellow)
set linetype 1 lc rgb '#E41A1C' pt 7 ps ptsize
set linetype 2 lc rgb '#377EB8' pt 7 ps ptsize
set linetype 3 lc rgb '#4DAF4A' pt 7 ps ptsize
set linetype 4 lc rgb '#984EA3' pt 7 ps ptsize
set linetype 5 lc rgb '#FF7F00' pt 7 ps ptsize
set linetype 6  lc rgb '#A65628' pt 7 ps ptsize 
set linetype 7  lc rgb '#F781BF' pt 7 ps ptsize 
set linetype 8  lc rgb '#999999' pt 7 ps ptsize 
set linetype 9 lc rgb '#8DD3C7' pt 7 ps ptsize 
set linetype 10 lc rgb '#BEBADA' pt 7 ps ptsize 
set linetype 11 lc rgb '#FB8072' pt 7 ps ptsize 

set format x "$10^{%L}$"
set format y "$10^{%L}$"

set xlabel "Number of Particles per Sector [N/s]"
set ylabel "Wall Time [s]"
set logscale xy
set key outside top center horizontal
set grid

#sectors = "1 4 16 64 256 1024"
particles = "1 4 16 64 256 1024 2048 4096"
#sectors = "1"
threads = "1"
#                                               header,     thread,    particles
plot for [n in particles] sprintf("< awk -F',' 'NR > 1 && $3 == %d && $2 == %d' joedata.csv", int(threads),int(n)) \
    using ($2/$4):5 with linespoints title n." Particles"