\input{test-defs.tex} % %------------------------- % \begin{document} \begin{figure}% \centering% \begin{gnuplot}[terminal=latex, terminaloptions=rotate] set key box top left set key width 4 set sample 1000 set xr [-5:5] set yr [-1:1] set xlabel '$x$-label' set ylabel '$y$-label' plot sin(x) with lines ,\ cos(x) with lines ,\ tan(x) with lines ,\ tanh(x) with lines \end{gnuplot} \caption{This is a simple example using the latex-terminal.}% \label{pic:latex}% \end{figure}% \end{document}