set logscale y set logscale x set ylabel 'normalized cost for theory and time for experiment' set xlabel 'N tuples' plot 'NN.dat' using 1:($3) with lines title 'experiment', 'NN.dat' using 1:($2/(90)) with lines title 'theory'