ursprungsgeraden.tex 924 B

1234567891011121314151617181920212223242526
  1. \begin{tikzpicture}
  2. \begin{axis}[
  3. legend pos=south east,
  4. axis x line=middle,
  5. axis y line=middle,
  6. %grid = major,
  7. width=12cm,
  8. height=8cm,
  9. %grid style={dashed, gray!30},
  10. xmin=-4, % start the diagram at this x-coordinate
  11. xmax= 8, % end the diagram at this x-coordinate
  12. ymin=-4, % start the diagram at this y-coordinate
  13. ymax= 4, % end the diagram at this y-coordinate
  14. axis background/.style={fill=white},
  15. %xticklabels={-2,-1.6,...,2},
  16. %yticklabels={-8,-7,...,8},
  17. %tick align=outside,
  18. enlargelimits=true,
  19. tension=0.08]
  20. % plot the stirling-formulae
  21. \addplot[domain=-4:8, red, thick,samples=500] {0.5*x};
  22. \addplot[domain=-2:2, red, thick,samples=500] {2*x};
  23. \addplot[domain=-4:8, red, thick,samples=500] {-0.5*x};
  24. \end{axis}
  25. \end{tikzpicture}