topology-simplex-1.tex 966 B

1234567891011121314151617181920212223242526
  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. %xlabel=$x$,
  16. %ylabel=$y$,
  17. tick align=outside,
  18. minor tick num=-3,
  19. enlargelimits=true,
  20. tension=0.08]
  21. \addplot[domain=0:2.5, red, thick,samples=20] {-x+2.5};
  22. \node[point,label={[label distance=0cm]45:$e_0$}] at (axis cs:2.5,0) {};
  23. \node[point,label={[label distance=0cm]0:$e_1$}] at (axis cs:0,2.5) {};
  24. \end{axis}
  25. \end{tikzpicture}