I'm trying to write a code for Feynman diagrams with TikZ (I know it is a common subject in the forum). I found very useful posts. However, I would like to draw a curved waved line
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing,decorations.markings,snakes}
\begin{document}
\begin{tikzpicture}[thick]
\path [draw=blue]
(-4,0) -- (-2,0) -- (2,0) -- (4,0);
\draw[draw=blue,snake=coil, segment aspect=0] (2,0) arc (0:180:2cm);
\end{tikzpicture}
\end{document}
The above code just draw a solid line, no waved.
Can anyone help me solve this weird behaviour?
decoration
key) and invoked, via thedecorate
key.