Advertisement
kalakay

node pin 3

Mar 2nd, 2019
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.98 KB | None | 0 0
  1. \documentclass[border=10pt]{standalone}
  2. \usepackage{tikz}
  3. \usepackage{fouriernc} %jenis huruf teks & matematis
  4.  
  5. \begin{document}
  6.  
  7. \begin{tikzpicture}[font=\scriptsize]
  8. \clip (-.5,-1.5) rectangle (7.3,2);
  9. \draw[-stealth] (-.5,0)--(7,0) node[right,black]{$X$};
  10. \draw[-stealth] (0,-1.5)--(0,1.5) node[above,black]{$Y$};
  11.  
  12. \draw[domain=0:2*pi,samples=200,smooth,red] plot(\x,{sin(\x r)}) ;
  13. \draw[domain=0:2*pi,samples=200,smooth,blue] plot(\x,{cos(\x r)}) ;
  14.  
  15. \path[shift={(2.2,.7)}]node[pos=.5,pin={[pin distance=.5cm,pin edge={ultra thin,gray!80}]30:$y=\sin x^\circ$}](A){}(3,2);
  16. \path[shift={(2.5,-.7)}]node[pos=.5,pin={[pin distance=.5cm,pin edge={ultra thin,gray!80}]210:$y=\cos x^\circ$}](B){}(3,-2);
  17.  
  18. \node[below,shift={(-.1,0)}] at (pi/2,0) {$90$};
  19. \node[below,shift={(-.1,0)}] at (pi,0) {$180$};
  20. \node[below,shift={(.1,0)}] at (3/2*pi,0) {$270$};
  21. \node[below,shift={(.1,0)}] at (2*pi,0) {$360$};
  22. \node[below,shift={(-.15,.05)}] at (0,0) {$O$};
  23. \end{tikzpicture}
  24. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement