topology-simplex-2.tex 1.0 KB

12345678910111213141516171819202122232425
  1. \begin{tikzpicture}
  2. \tikzstyle{point}=[thick,draw=black,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt]
  3. \begin{axis}[
  4. legend pos=south west,
  5. axis x line=middle,
  6. axis y line=middle,
  7. grid = major,
  8. width=5cm,
  9. height=5cm,
  10. grid style={dashed, gray!30},
  11. xmin=0, % start the diagram at this x-coordinate
  12. xmax=3, % end the diagram at this x-coordinate
  13. ymin=0, % start the diagram at this y-coordinate
  14. ymax=3, % end the diagram at this y-coordinate
  15. tick align=outside,
  16. minor tick num=-3,
  17. enlargelimits=true,
  18. tension=0.08]
  19. \node (a)[point,label={[label distance=0cm]5:$e_0$}] at (axis cs:2.5,0) {};
  20. \node (b)[point,label={[label distance=0cm]5:$e_1$}] at (axis cs:0,2.5) {};
  21. \node (c)[point,label={[label distance=0cm]0:$e_2$}] at (axis cs:2,2) {};
  22. \draw[thick,fill=orange!50] (a.center) -- (b.center) -- (c.center) -- cycle;
  23. \end{axis}
  24. \end{tikzpicture}