set terminal png set output 'plot.png' set xlabel 'x' set ylabel 'y' set title 'test plot' set tics out set key out f(x) = -x*x plot [][-2:2] "data.txt",sin(x),cos(x),erf(x),f(x)