topology-paths-in-r2.tex 983 B

12345678910111213141516171819202122232425262728
  1. \begin{tikzpicture}
  2. \begin{axis}[
  3. legend pos=south west,
  4. axis x line=middle,
  5. axis y line=middle,
  6. %grid = major,
  7. width=9cm,
  8. height=9cm,
  9. grid style={dashed, gray!30},
  10. xmin=-2, % start the diagram at this x-coordinate
  11. xmax= 1, % end the diagram at this x-coordinate
  12. ymin=-1, % start the diagram at this y-coordinate
  13. ymax= 5, % end the diagram at this y-coordinate
  14. %axis background/.style={fill=white},
  15. %xlabel=$x$,
  16. %ylabel=$y$,
  17. ticks=none,
  18. %tick align=outside,
  19. %minor tick num=-3,
  20. enlargelimits=true,
  21. tension=0.08]
  22. \addplot[mark=none, orange, smooth cycle, thick, tension=1, dashed] coordinates {%
  23. (0,0) (-1,1) (-2,2) (-1,3) (0, 3) (1, 4)};
  24. \addplot[mark=none, blue, smooth cycle, thick, tension=3] coordinates {%
  25. (0,0) (-1,1) (-2,2) (-1,3) (0, 3) (1, 4)};
  26. \end{axis}
  27. \end{tikzpicture}