% 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)}; \addplot[samples=301,domain=0:3.0,smooth,black] {sin(deg(x)*2*pi)}; \addplot[samples=51,domain=3.0:3.5,smooth,dashed] {sin(deg(x)*2*pi)}; \end{axis} \end{tikzpicture}