topology-simplex-2.tex 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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. tick align=outside,
  22. minor tick num=-3,
  23. enlargelimits=true,
  24. tension=0.08]
  25. \node (a)[point,label={[label distance=0cm]5:$e_0$}] at (axis cs:2.5,0) {};
  26. \node (b)[point,label={[label distance=0cm]5:$e_1$}] at (axis cs:0,2.5) {};
  27. \node (c)[point,label={[label distance=0cm]0:$e_2$}] at (axis cs:2,2) {};
  28. \draw[thick,fill=orange!50] (a.center) -- (b.center) -- (c.center) -- cycle;
  29. \end{axis}
  30. \end{tikzpicture}
  31. \end{document}