topology-simplex-1.tex 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{pgfplots}
  3. \usepackage{tikz}
  4. \usepackage{tkz-fct}
  5. \usetikzlibrary{shapes.misc}
  6. \begin{document}
  7. \begin{tikzpicture}
  8. \tikzstyle{point}=[thick,draw=black,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt]
  9. \begin{axis}[
  10. legend pos=south west,
  11. axis x line=middle,
  12. axis y line=middle,
  13. grid = major,
  14. width=5cm,
  15. height=5cm,
  16. grid style={dashed, gray!30},
  17. xmin=0, % start the diagram at this x-coordinate
  18. xmax=3, % end the diagram at this x-coordinate
  19. ymin=0, % start the diagram at this y-coordinate
  20. ymax=3, % end the diagram at this y-coordinate
  21. %xlabel=$x$,
  22. %ylabel=$y$,
  23. tick align=outside,
  24. minor tick num=-3,
  25. enlargelimits=true,
  26. tension=0.08]
  27. \addplot[domain=0:2.5, red, thick,samples=20] {-x+2.5};
  28. \node[point,label={[label distance=0cm]45:$e_0$}] at (axis cs:2.5,0) {};
  29. \node[point,label={[label distance=0cm]0:$e_1$}] at (axis cs:0,2.5) {};
  30. \end{axis}
  31. \end{tikzpicture}
  32. \end{document}