Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass[border=10pt]{standalone}
- \usepackage{tikz}
- \usepackage{fouriernc} %jenis huruf teks & matematis
- \begin{document}
- \begin{tikzpicture}[font=\scriptsize]
- \clip (-.5,-1.5) rectangle (7.3,2);
- \draw[-stealth] (-.5,0)--(7,0) node[right,black]{$X$};
- \draw[-stealth] (0,-1.5)--(0,1.5) node[above,black]{$Y$};
- \draw[domain=0:2*pi,samples=200,smooth,red] plot(\x,{sin(\x r)}) ;
- \draw[domain=0:2*pi,samples=200,smooth,blue] plot(\x,{cos(\x r)}) ;
- \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);
- \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);
- \node[below,shift={(-.1,0)}] at (pi/2,0) {$90$};
- \node[below,shift={(-.1,0)}] at (pi,0) {$180$};
- \node[below,shift={(.1,0)}] at (3/2*pi,0) {$270$};
- \node[below,shift={(.1,0)}] at (2*pi,0) {$360$};
- \node[below,shift={(-.15,.05)}] at (0,0) {$O$};
- \end{tikzpicture}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement