set terminal latex set output "eg1.tex" plot [-3.14:3.14] sin(x)