summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/gnuplottex/example-pdf.tex
blob: 02287b03b2de3d8bc2824454cbd8fd7c0f5580e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\documentclass[a4paper]{article}

\usepackage[subfolder]{gnuplottex}

\begin{document}

\begin{gnuplot}[terminal=pdf,terminaloptions={font ",10" linewidth 3}]
	plot sin(x), cos(x)
\end{gnuplot}

\begin{gnuplot}[scale=0.8]
	set grid
	set title 'gnuplottex test $e^x$'
	set ylabel '$y$'
	set xlabel '$x$'
	plot exp(x) with linespoints
\end{gnuplot}

\gnuplotloadfile[terminal=pdf]{example.gnuplot}

\end{document}