set terminal latex set output "tmp.tex" set title "Gnuplot example" set xlabel "x" set ylabel "y" plot sin(3*x), x*cos(3*x)