From 5b08f435327695bb633cd21ae8252b25528de3f6 Mon Sep 17 00:00:00 2001 From: Connor Moore Date: Mon, 23 Mar 2026 01:40:30 -0400 Subject: New report and code for final submission. --- report/Figures/scaling.gnu | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 report/Figures/scaling.gnu (limited to 'report/Figures/scaling.gnu') 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)$" -- cgit v1.2.3