Files
50ohm-contents-dl/contents/drawings/387.tex
T

35 lines
1.4 KiB
TeX

% Author: Dr. Henning Paul, DC4HP
% Year: 2022
\begin{tikzpicture}
\begin{axis}[%
/pgf/number format/1000 sep={ },
/pgf/number format/use comma,
axis lines=middle,
axis line style={-Triangle},
every axis x label/.style={at={(ticklabel* cs:1.02)},anchor=west,},
every axis y label/.style={at={(ticklabel* cs:1.02)},anchor=south,},
ytick style={draw=none},
ymajorgrids=false,
yticklabel=\empty,
xticklabels={~~~~$\mathrm{T}$,~~~~~~$2\mathrm{T}$,~~~~~~$3\mathrm{T}$,~~~~~~$4\mathrm{T}$},
%xticklabel=\empty,
xtick={1,2,3,4},
xmin=-0.5,
xmax=3.7,
ymin=-1.4,
ymax=1.7,
xmajorgrids=false,
xlabel style={at={(ticklabel* cs:1)},anchor=north east},
ylabel style={at={(ticklabel* cs:1)},anchor=south east},
ylabel={$U$},
xlabel={$t$},
width=\linewidth*\getDarcImageFactor,
height=2.5cm,
scale only axis,
]
\addplot[samples=101,domain=-1.0:0,smooth,dashed] {sin(deg(x)*2*pi) * 1.0 + sin(deg(3.0*x)*2*pi) / 3 + sin(deg(5.0*x)*2*pi) /5 + sin(deg(7.0*x)*2*pi) /7 };
\addplot[samples=301,domain=0:3.0,smooth,black] {sin(deg(x)*2*pi) * 1.0 + sin(deg(3.0*x)*2*pi) / 3 + sin(deg(5.0*x)*2*pi) /5 + sin(deg(7.0*x)*2*pi) /7 };
\addplot[samples=51,domain=3.0:3.5,smooth,dashed] {sin(deg(x)*2*pi) * 1.0 + sin(deg(3.0*x)*2*pi) / 3 + sin(deg(5.0*x)*2*pi) /5 + sin(deg(7.0*x)*2*pi) /7 };
\end{axis}
\end{tikzpicture}