topology-paths-in-r2.tex 1.1 KB

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