line-reflection.tex 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tkz-fct}
  3. \usetikzlibrary{arrows, decorations.pathreplacing}
  4. \begin{document}
  5. \begin{tikzpicture}
  6. \tkzInit [xmin=0,xmax=7.8,ymin=0,ymax=9.5]
  7. \begin{scriptsize}
  8. \tkzGrid[color = gray!30!white]
  9. \tkzAxeXY
  10. \end{scriptsize}
  11. \draw[thick,green] (0,3.6) -- (8,6.5);
  12. \node[green,rotate=20] at (6.5,6.15) {$\scriptstyle g(x) = m \cdot x + t$};
  13. \draw[dashed,red] (5.5,1) -- (2.5,9);
  14. \draw[thick,fill=red,red] (5.5,1) circle (2pt);
  15. \node[red] at (5.6,1.25) {$P$};
  16. \draw[thick,fill=red,red] (2.5,9) circle (2pt);
  17. \node[red] at (2.8,9) {$P'$};
  18. \draw[dashed] (2.5,5.05) -- (5.6,5.05);
  19. \draw [decorate,decoration={brace,amplitude=10pt,mirror,raise=4pt},yshift=0pt]
  20. (5.5,1) -- (5.5,5.05) node [black,midway,xshift=0.8cm] {\footnotesize
  21. $\Delta y$};
  22. \draw [decorate,decoration={brace,amplitude=10pt,mirror,raise=4pt},yshift=0pt]
  23. (2.5,9) -- (2.5,5.05) node [black,midway,xshift=-0.8cm] {\footnotesize
  24. $\Delta y$};
  25. \draw [decorate,decoration={brace,amplitude=2pt,mirror,raise=2pt},yshift=0pt]
  26. (2.5,5.05) -- (3.97,5.05) node [black,midway,yshift=-0.4cm] {\footnotesize
  27. $\Delta x$};
  28. \draw [decorate,decoration={brace,amplitude=2pt,mirror,raise=2pt},yshift=0pt]
  29. (3.97,5.05) -- (5.5,5.05) node [black,midway,yshift=-0.4cm] {\footnotesize
  30. $\Delta x$};
  31. \draw[thick,fill=red,red] (3.97,5.05) circle (2pt);
  32. \node[red] at (4.1,5.4) {$L$};
  33. \end{tikzpicture}
  34. \end{document}