Skip to content

Commit

Permalink
Add linear polarisation graphic
Browse files Browse the repository at this point in the history
  • Loading branch information
aknierim committed Jan 11, 2024
1 parent 79b5b78 commit 1ba7c7a
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
17 changes: 17 additions & 0 deletions light/polarisation/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
TeXInputs = TEXINPUTS=../..:

all: build/lin_polarisation.pdf

build/lin_polarisation.pdf: FORCE | build
$(TeXInputs) latexmk -r ../../latexmkrc lin_polarisation.tex


FORCE:

build:
mkdir -p build/

clean:
rm -rf build

.PHONY: FORCE all clean
28 changes: 28 additions & 0 deletions light/polarisation/lin_polarisation.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
\input{../../tikz-header.tex}

\begin{document}
\begin{tikzpicture}[
x={(30:1cm)},
y={(-30:1cm)},
z={(90:1cm)},
>=latex,
axis/.style={thick,->},
]
\coordinate (O) at (0,0,0);
\draw[axis] (O) -- +(8.5,0,0) node [right] {$x$};
\draw[axis] (O) -- +(0,2,0) node [right] {$y$};
\draw[axis] (O) -- +(0,0,2) node [right] {$z$};
\draw[thick, dashed] (O) -- +(-2,0,0);

\draw[
tugreen,
thick,
smooth,
variable=\x,
samples at={0,0.25,...,8}
] plot (\x,0,{sin(2*\x r)});

\foreach \x in{0.25,0.5,...,8}
\draw[tugreen,->] (\x,0,0) -- (\x,0,{sin(2*\x r)});
\end{tikzpicture}
\end{document}

0 comments on commit 1ba7c7a

Please sign in to comment.