sinus-burst-1.tex 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{pgfplots}
  3. \usepackage{tikz}
  4. \begin{document}
  5. \begin{tikzpicture}
  6. \begin{axis}[
  7. legend pos=south west,
  8. axis x line=middle,
  9. axis y line=middle,
  10. grid = major,
  11. width=12cm,
  12. height=4.5cm,
  13. grid style={dashed, gray!30},
  14. xmin=-1, % start the diagram at this x-coordinate
  15. xmax= 1, % end the diagram at this x-coordinate
  16. ymin=-1, % start the diagram at this y-coordinate
  17. ymax= 1, % end the diagram at this y-coordinate
  18. axis background/.style={fill=white},
  19. xlabel=x,
  20. ylabel=y,
  21. %xticklabels={-1,-0.8,...,1},
  22. extra x ticks={-1,-0.8,-0.6,-0.4,-0.2,0,0.2,0.4,0.6,0.8,1},
  23. %yticklabels={-8,-7,...,8},
  24. tick align=outside,
  25. enlargelimits=true,
  26. tension=0.08]
  27. % plot the stirling-formulae
  28. \addplot[domain=-1:1, samples=500] {sin(1150*x)/(20*x)};
  29. %\addlegendentry{$f_1(x)=\frac{1}{2}x^2$}
  30. \end{axis}
  31. \end{tikzpicture}
  32. \end{document}