Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. documentclass[10pt]{amsart}
  2. usepackage{tikz}
  3. usepackage{pgfplots}
  4. pgfplotsset{compat=1.11}
  5.  
  6.  
  7. begin{document}
  8.  
  9. hspace*{fill}
  10. begin{tikzpicture}
  11. begin{axis}[width=4in,axis equal image,
  12. xmax=3,ymax=1.5,
  13. axis lines=middle,
  14. restrict y to domain=-1:2,
  15. enlargelimits,
  16. axis line style={shorten >=-0.25cm,shorten <=-0.25cm,latex-latex},
  17. ticklabel style={fill=white},
  18. extra x ticks={-2,-1,0,1,2},
  19. %extra x tick style={grid=none}
  20. ]
  21.  
  22. addplot[domain=-2.5:2.5,mark=none,samples=200] {abs(sin(pi(x)))} node[fill=white, below left, yshift=-3pt]{$y=vertsin(pi x)vert$};
  23.  
  24.  
  25. end{axis}
  26. end{tikzpicture}
  27. hspace{fill}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement