faktorraum.tex 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. \documentclass{article}
  2. \usepackage[pdftex,active,tightpage]{preview}
  3. \setlength\PreviewBorder{2mm}
  4. \usepackage{amsmath}
  5. \usepackage{pgfplots}
  6. \usepackage{tikz}
  7. \usetikzlibrary{arrows, positioning, calc,matrix}
  8. \begin{document}
  9. \begin{preview}
  10. \begin{tikzpicture}
  11. \begin{axis}[
  12. width=10cm, height=10cm, % size of the image
  13. axis lines=middle,
  14. grid = major,
  15. grid style={dashed, gray!30},
  16. %xmode=log,log basis x=10,
  17. %ymode=log,log basis y=10,
  18. xmin=-100, % start the diagram at this x-coordinate
  19. xmax= 100, % end the diagram at this x-coordinate
  20. ymin=-100, % start the diagram at this y-coordinate
  21. ymax= 100, % end the diagram at this y-coordinate
  22. /pgfplots/xtick={-100,-80,...,100},
  23. /pgfplots/ytick={-100,-80,...,100},
  24. tick align=outside,
  25. legend pos= north west,
  26. legend cell align=left,
  27. legend style={legend pos=north west,font=\tiny}]
  28. \addplot[domain=-100:100, red, thick] {x};
  29. \addlegendentry{$\begin{pmatrix}0\\0\end{pmatrix} + U$};
  30. \addplot[domain=-100:100, blue, thick] {x + 12};
  31. \addlegendentry{$\begin{pmatrix}0\\12\end{pmatrix} + U$};
  32. \addplot[domain=-100:100, purple, thick] {x - 42};
  33. \addlegendentry{$\begin{pmatrix}0\\-42\end{pmatrix} + U$};
  34. \addplot[domain=-100:100, lime, thick] {x + 50};
  35. \addlegendentry{$\begin{pmatrix}0\\50\end{pmatrix} + U$};
  36. \end{axis}
  37. \end{tikzpicture}
  38. \end{preview}
  39. \end{document}