Guest User

Untitled

a guest
Dec 13th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{pgfplots}
  3. pgfplotsset{compat=1.15}
  4.  
  5. begin{document}
  6.  
  7. begin{figure}[h]
  8. begin{tikzpicture}
  9. begin{axis}
  10. [xlabel=$x$,ylabel=$y$,
  11. xtick={100},ytick={100},
  12. no marks,axis equal,axis lines=middle,
  13. xmin=-2,xmax=2,ymin=-2,ymax=2,
  14. enlargelimits={upper=0.1}]
  15. addplot[color=black, no markers, samples=1001, samples y=0,
  16. domain=0:pi, variable=t] ( {(2*cos(t r)} , {sin(t r)} );
  17. end{axis}
  18.  
  19. draw (2.98,4.13) node {$1$};
  20. draw (2.9,2.38) node {$O$};
  21. draw (5.88,2.42) node {$2$};
  22. draw (0.3,2.42) node {$-2$};
  23. end{tikzpicture}
  24. end{figure}
  25.  
  26. end{document}
Add Comment
Please, Sign In to add comment