von localghost » Mi 23. Okt 2013, 20:42
Mit
pgfplots ist es am einfachsten. Dennoch können einen die vielen notwendigen Einstellungen zunächst überfordern. Und weil ich heute in Spendier-Laune bin …
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pgfplots}
\pgfplotsset{
compat=1.9
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=10cm,
height=7cm,
axis on top,
axis x line*=middle,
axis y line*=left,
minor x tick num=3,
minor y tick num=4,
xmin=0,
xmax=1,
samples=500,
font=\scriptsize,
/pgf/number format/fixed,
/pgf/number format/fixed zerofill,
/pgf/number format/precision=1
]
\addplot[smooth,fill=gray!25] {sin(deg(x)*2*pi)*sin(deg(x)*4*pi)};
\addplot[smooth,thick] {sin(deg(x)*2*pi)};
\addplot[smooth,thick] {sin(deg(x)*4*pi)};
\end{axis}
\end{tikzpicture}
\end{document}
An dem Beispiel kannst Du dich ja zunächst orientieren.
Thorsten

Mit [url=http://ctan.org/pkg/pgfplots]pgfplots[/url] ist es am einfachsten. Dennoch können einen die vielen notwendigen Einstellungen zunächst überfordern. Und weil ich heute in Spendier-Laune bin …
[code]\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{pgfplots}
\pgfplotsset{
compat=1.9
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=10cm,
height=7cm,
axis on top,
axis x line*=middle,
axis y line*=left,
minor x tick num=3,
minor y tick num=4,
xmin=0,
xmax=1,
samples=500,
font=\scriptsize,
/pgf/number format/fixed,
/pgf/number format/fixed zerofill,
/pgf/number format/precision=1
]
\addplot[smooth,fill=gray!25] {sin(deg(x)*2*pi)*sin(deg(x)*4*pi)};
\addplot[smooth,thick] {sin(deg(x)*2*pi)};
\addplot[smooth,thick] {sin(deg(x)*4*pi)};
\end{axis}
\end{tikzpicture}
\end{document}[/code]
An dem Beispiel kannst Du dich ja zunächst orientieren.
Thorsten
[img]http://i.imgur.com/qP986s2.png[/img]