sncf-metrik.tex 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. \tikzset{
  2. point/.style={
  3. thick,
  4. draw=gray,
  5. cross out,
  6. inner sep=0pt,
  7. minimum width=4pt,
  8. minimum height=4pt,
  9. },
  10. }
  11. \begin{tikzpicture}
  12. \begin{axis}[
  13. legend pos=south east,
  14. axis x line=middle,
  15. axis y line=middle,
  16. %grid = major,
  17. width=12cm,
  18. height=8cm,
  19. %grid style={dashed, gray!30},
  20. xmin=-4, % start the diagram at this x-coordinate
  21. xmax= 8, % end the diagram at this x-coordinate
  22. ymin=-4, % start the diagram at this y-coordinate
  23. ymax= 4, % end the diagram at this y-coordinate
  24. axis background/.style={fill=white},
  25. %xticklabels={-2,-1.6,...,2},
  26. %yticklabels={-8,-7,...,8},
  27. %tick align=outside,
  28. enlargelimits=true,
  29. tension=0.08]
  30. % plot the stirling-formulae
  31. \addplot[domain=-4:8, red, thick,samples=500] {0.5*x};
  32. \addplot[domain=-2:2, red, thick,samples=500] {2*x};
  33. \addplot[domain=-4:4, red, thick,samples=500] {x};
  34. \addplot[domain=-4:8, red, thick,samples=500] {-0.5*x};
  35. \addplot[color=red,only marks,mark=o]
  36. plot coordinates {
  37. (1.5,3)
  38. (1.5,1.5)
  39. };
  40. \end{axis}
  41. \end{tikzpicture}