blob: 0fcfa366633f9b20c4c625e08c132a6398278ced (
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
|
#set terminal x11 persist
set terminal cairolatex pdf size 5in,3in
set output 'timing.tex'
set linetype 1 lc rgb '#E41A1C' pt 7 ps 0.3
set linetype 2 lc rgb '#377EB8' pt 7 ps 0.3
set linetype 3 lc rgb '#4DAF4A' pt 7 ps 0.3
set linetype 4 lc rgb '#984EA3' pt 7 ps 0.3
#set size square
set xrange [50:10000]
#set yrange [1.3:1000]
#set object 1 rectangle from -0.5,-0.5 to 0.5,0.5 dt 2
#set key outside top center horizontal
set key top left
#unset key
set logscale xy
set grid
set xlabel "Number of Particles [N]"
set ylabel "Wall Time [s]"
set format x "$10^{%L}$"
set format y "$10^{%L}$"
plot 'timing2.txt' using 1:2 with linespoints lt 1 title "Measured", \
[100:5000] 5.2e-6*x**2 with lines dt 2 lc rgb 'black' title "$\\mathcal{O}(n^2)$"#, \
# [50:500] 6e-4*x**2/4 with lines dt 3 lc rgb 'black' title "$\\mathcal{O}(n^2)$"
|