#set term x11 persist set term cairolatex pdf size 5in,3in set output "fig41.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 [N]" set ylabel "Wall Time [s]" set logscale xy set key top left set grid sectors = "1 4 16 64 256 1024" #sectors = "1" threads = "1" plot for [s in sectors] sprintf("< awk -F',' 'NR > 1 && $3 == %d && $4 == %d' joedata.csv", int(threads),int(s)) \ using 2:5 with linespoints title s." Sectors"