reset

dir=system("echo $DIR")
label=system("echo $LABEL")
wavelet=system("echo $WAVELET")

set terminal pdf enhanced dashed linewidth 1 size 22cm,12cm font 'Serif,10'

set xlabel "pixels"
set ylabel "GB/s"
set format x "%.1s%c"
set format y "%.1s%c"
set pointsize 0.5
set key outside
set logscale x

input=sprintf("%s/%s%s", dir, wavelet, "gb.dat")
set title sprintf("%s %s", label, wavelet)
set output sprintf("%s-%s%s", label, wavelet, ".pdf")


N=`awk 'NR==1 {print NF}' "$DIR/$WAVELET""gb.dat"`

plot for [i=2:N] input using 1:i with linespoints title columnheader 
