SHARE
TWEET

Untitled

a guest Apr 27th, 2017 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2. \usepackage{tikz,amsmath, amssymb,bm,color}
  3. %\usepackage[margin=0cm,nohead]{geometry}
  4. %\usepackage[active,tightpage]{preview}
  5. \usetikzlibrary{shapes,arrows}
  6. \usetikzlibrary{decorations.markings,math}
  7. % needed for BB
  8. \usetikzlibrary{calc}
  9.  
  10. \begin{document}
  11.  
  12. \begin{figure}
  13. \begin{tikzpicture}
  14. \tikzmath{\ang = 45;};
  15. \begin{scope}[thick,decoration={
  16.     markings,
  17.     mark=at position 0.5 with {\arrow{latex}}}
  18. ]
  19. \filldraw[red] (-1,0) circle (2pt)
  20. node[anchor=east, font = \footnotesize] at (-1,-0.2) {$\mathrm{E_0}$};
  21. \draw[dashed, red] (-1,0) --++({\ang+90}:1);
  22. \filldraw[green] (1,0) circle (2pt)
  23. node[anchor=west, font = \footnotesize] at (1,-0.2) {$\mathrm{E_0}$};
  24. \draw[postaction={decorate}, red] (-1,0) --++ (\ang:2);
  25. \draw[postaction={decorate}, green] (1,0) --++ (\ang:2);
  26. \draw[<->, thick] (-1, -0.2) -- (1, -0.2);
  27. \draw[dashed, green] (1,0) --++ ({\ang+90}:2.5);
  28. \draw[<->, thick] (-1,0)++({\ang+90}:1) --++ (\ang:{2*cos(\ang)});
  29. %       \draw[<->, thick] (-1,0)++({\ang+90}:1) --++ (\ang:{2*cos(\ang) });
  30. \node[anchor=north, font = \footnotesize]  at  (0, -0.2) {d=$\lambda/2$};
  31. \end{scope}
  32. \draw[blue, thick, dash pattern= on 25 off 7 on 50 off 7 on 10] (-2,0) -- (2, 0);
  33. \node[anchor=west, font = \footnotesize, blue] at (1.5,-0.05) {z}; node[near start, auto] {true}
  34. \draw[thick,blue,->] ([shift=(0:1)]1,0) arc (0:\ang:1);
  35. %   \draw[thick,blue,->] (2,0)  arc (0:\ang:1);
  36. \draw (1,0)++({\ang/2}:1.2) node[rotate=\ang, anchor=base, blue, font=\normalsize]{$\theta$};
  37. \draw ({\ang+90}:1.3) node[rotate=\ang, anchor=base, black, font=\normalsize]{$d\cos\theta$};
  38. \end{tikzpicture}
  39. \end{figure}
  40. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top