set terminal latex
set output "plot.tex"
set size 1.02, 1.05

set xlabel "Number of CPs"
set ylabel "Mbytes/s"

set title 'Throughput of TC and DDIO, varying number of CPs'

set key 16,28

set data style linespoints

set label "Max bandwidth" at 8,39 left

plot [0:18] [0:40]  'max' notitle w lines 3,\
 'data.DDIO.wrlw' title 'DDIO \wrlw/' w linesp 1 1,\
 'data.DDIO.wrn' title 'DDIO \wrn/' w linesp 1 2,\
 'data.DDIO.wrb' title 'DDIO \wrb/' w linesp 1 3,\
 'data.DDIO.wrc' title 'DDIO \wrc/' w linesp 1 4,\
 'data.TC.wrlw' title 'TC \wrlw/' w linesp 2 1,\
 'data.TC.wrn' title 'TC \wrn/' w linesp 2 2,\
 'data.TC.wrb' title 'TC \wrb/' w linesp 2 3,\
 'data.TC.wrc' title 'TC \wrc/' w linesp 2 4
