diff options
| author | Connor Moore <connor@hhmoore.ca> | 2026-03-23 01:40:30 -0400 |
|---|---|---|
| committer | Connor Moore <connor@hhmoore.ca> | 2026-03-23 01:40:30 -0400 |
| commit | 5b08f435327695bb633cd21ae8252b25528de3f6 (patch) | |
| tree | 7eb5cdfa0acded8eaf8f1881e8542fe7b441d67c /report/Figures/scaling.gnu | |
| parent | f7ad40d801e30f542baaf471e0b0d08aacc212ee (diff) | |
Diffstat (limited to 'report/Figures/scaling.gnu')
| -rw-r--r-- | report/Figures/scaling.gnu | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/report/Figures/scaling.gnu b/report/Figures/scaling.gnu new file mode 100644 index 0000000..0fcfa36 --- /dev/null +++ b/report/Figures/scaling.gnu @@ -0,0 +1,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)$" |
