Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. documentclass[10pt]{amsart}
  2. usepackage{amsmath}
  3. usepackage{amsfonts}
  4. usepackage{amssymb}
  5. usepackage{amsthm}
  6. usepackage{mathtools,array}
  7.  
  8. usepackage{tikz}
  9. usetikzlibrary{calc,angles,positioning,intersections,quotes,decorations.markings}
  10. usepackage{tkz-euclide}
  11. usetkzobj{all}
  12.  
  13. usepackage{pgfplots}
  14. pgfplotsset{compat=1.11}
  15.  
  16.  
  17. begin{document}
  18.  
  19.  
  20. begin{tikzpicture}begin{axis}
  21. [width=6in,axis equal image,
  22. axis lines=middle,
  23. xmin=-10,xmax=10,samples=201,
  24. xlabel=$x$,ylabel=$y$,
  25. ymin=-4,ymax=6,
  26. restrict y to domain=-4:6,
  27. enlargelimits={abs=0.5cm},
  28. axis line style={latex-latex},
  29. ticklabel style={font=tiny,fill=white},
  30. xtick={empty},ytick={empty},
  31. xlabel style={at={(ticklabel* cs:1)},anchor=north west},
  32. ylabel style={at={(ticklabel* cs:1)},anchor=south west}
  33. ]
  34. path (80:3) coordinate (a) (20:3.5) coordinate (b) (0:0) node[dot,label=below left:$P$]{} coordinate(P)(-100:1)coordinate (e) (-160:1) coordinate (f)(80:2) node [dot,label=above left:$A$]{} coordinate (A) (20:2.5) node [dot,label=below:$B$]{} coordinate (B) ($(P)!(A)!(B)$) coordinate [label=below:$Q$](Q);
  35. draw[<->] (a) node [above left ]{$l$} -- (e);
  36. draw[<->] (b) node [below right]{$k$} -- (f);
  37.  
  38. draw[purple!70!black,dashed] (A) -- (Q);
  39. tkzMarkRightAngle(A,Q,P);
  40.  
  41. draw[|<->|] ($(P)!3mm!90:(A)$)--node[fill=white,sloped] {$r$} ($(A)!3mm!-90:(P)$);
  42. draw[|<->|] ($(P)!-3mm!90:(Q)$)--node[fill=white,sloped] {$x$} ($(Q)!-3mm!-90:(P)$);
  43. draw[|<->|] ($(Q)!-3mm!90:(A)$)--node[fill=white,sloped] {$y$} ($(A)!-3mm!-90:(Q)$);
  44. path pic[draw, angle radius=5mm,"$theta$",angle eccentricity=1.25] {angle = B--P--A};
  45. endend{axis}
  46. end{tikzpicture}
  47.  
  48. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement