#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)$"