texmf-dist/doc/latex/gnuplottex/example-pdf.tex
raw| 1 | \documentclass[a4paper]{article} |
| 2 | |
| 3 | \usepackage[subfolder]{gnuplottex} |
| 4 | |
| 5 | \begin{document} |
| 6 | |
| 7 | \begin{gnuplot}[terminal=pdf,terminaloptions={font ",10" linewidth 3}] |
| 8 | plot sin(x), cos(x) |
| 9 | \end{gnuplot} |
| 10 | |
| 11 | \begin{gnuplot}[scale=0.8] |
| 12 | set grid |
| 13 | set title 'gnuplottex test $e^x$' |
| 14 | set ylabel '$y$' |
| 15 | set xlabel '$x$' |
| 16 | plot exp(x) with linespoints |
| 17 | \end{gnuplot} |
| 18 | |
| 19 | \gnuplotloadfile[terminal=pdf]{example.gnuplot} |
| 20 | |
| 21 | \end{document} |