feature: add latex sources of drawings
This commit is contained in:
@@ -0,0 +1,54 @@
|
||||
%
|
||||
% Author: Michael Groni, DB7YI
|
||||
% Year: 2023
|
||||
%
|
||||
\begin{tikzpicture}
|
||||
|
||||
\tikzstyle{digitalNumber}=[draw=DARCgray, fill=white, minimum width=0.5, minimum height=0.5, rounded corners=1, font=\bfseries]
|
||||
\tikzstyle{phaseShift}=[fill=DARCorange, font=\tiny, inner sep=1, align=center]
|
||||
|
||||
\tikzset{
|
||||
phaseshiftPic/.pic={
|
||||
\node [phaseShift, regular polygon, regular polygon sides=3, rotate=180, minimum size=4, inner sep=0] at (0, 0) {};
|
||||
\node [phaseShift, anchor=south] at (0,0) {Phasen-\\[-0.1em]wechsel};
|
||||
}
|
||||
}
|
||||
|
||||
\def\yNumbers{-5.2}
|
||||
\def\yPins{-0.5}
|
||||
|
||||
\begin{axis}[
|
||||
axis lines=middle,
|
||||
width=\linewidth*\getDarcImageFactor,
|
||||
height=4cm,
|
||||
scale only axis,
|
||||
yticklabel=\empty, ytick={},
|
||||
xticklabel=\empty, xtick distance=5*360, xmajorgrids,
|
||||
scaled ticks=false,
|
||||
clip=false,
|
||||
xlabel={$t$},xlabel style={anchor=north}, ylabel={$U$}, ylabel style={anchor=east}, title=PSK,
|
||||
xmin=0, xmax=11100, ymin=-4.7, ymax=4.7, axis line style={-triangle 60} % xmax: 11100 = 30*360 + 300
|
||||
]
|
||||
\addplot [ draw=DARCblue, domain=0:5*360, samples=800 ] {4*sin(0.8*x)};
|
||||
\addplot [ draw=DARCblue, domain=5*360:10*360, samples=800 ] {4*sin(0.8*x)};
|
||||
\addplot [ draw=DARCblue, domain=10*360:15*360, samples=800 ] {4*sin(0.8*x+180)};
|
||||
\addplot [ draw=DARCblue, domain=15*360:20*360, samples=800 ] {4*sin(0.8*x)};
|
||||
\addplot [ draw=DARCblue, domain=20*360:25*360, samples=800 ] {4*sin(0.8*x+180)};
|
||||
\addplot [ draw=DARCblue, domain=25*360:30*360, samples=800 ] {4*sin(0.8*x+180)};
|
||||
|
||||
\pic at (axis cs: 10*360, \yPins) {phaseshiftPic};
|
||||
\pic at (axis cs: 15*360, \yPins) {phaseshiftPic};
|
||||
\pic at (axis cs: 20*360, \yPins) {phaseshiftPic};
|
||||
%\node [phaseShift] at (axis cs: 10*360, \yPins) {Phasen-\\[-0.1em]wechsel};
|
||||
%\node [phaseShift] at (axis cs: 15*360, \yPins) {Phasen-\\[-0.1em]wechsel};
|
||||
%\node [phaseShift] at (axis cs: 20*360, \yPins) {Phasen-\\[-0.1em]wechsel};
|
||||
|
||||
\node [digitalNumber] at (axis cs: 2.5*360, \yNumbers) {0};
|
||||
\node [digitalNumber] at (axis cs: 7.5*360, \yNumbers) {0};
|
||||
\node [digitalNumber] at (axis cs: 12.5*360, \yNumbers) {1};
|
||||
\node [digitalNumber] at (axis cs: 17.5*360, \yNumbers) {0};
|
||||
\node [digitalNumber] at (axis cs: 22.5*360, \yNumbers) {1};
|
||||
\node [digitalNumber] at (axis cs: 27.5*360, \yNumbers) {1};
|
||||
\end{axis}
|
||||
|
||||
\end{tikzpicture}
|
||||
Reference in New Issue
Block a user