topology-1.tex 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. \begin{tikzpicture}
  2. \begin{axis}[
  3. axis x line=none,
  4. axis y line=none,
  5. %width=9cm,
  6. %height=4.5cm,
  7. xmin= 0, % start the diagram at this x-coordinate
  8. xmax= 5, % end the diagram at this x-coordinate
  9. ymin= 0, % start the diagram at this y-coordinate
  10. ymax= 5, % end the diagram at this y-coordinate
  11. xlabel=$Y$,
  12. ylabel=$X$,
  13. ticks=none,
  14. enlargelimits=true]
  15. \addplot[mark=none, red, smooth cycle, thick, fill=red!30] coordinates {(0,0) (2,0.2) (3,1.5) (3,2) (3.5,3) (3.2, 5) (2.2, 4.7) (1.5, 4.2) (1.1, 3.9) (0.2, 2.5)};
  16. \node[red] at (axis cs:4,4) [anchor=south] {$X_i$};
  17. % Draw solid square
  18. \addplot[mark=none, thick] coordinates {(1.5,2.0) (2.5,2.0) (2.5,3.6) (1.5,3.6) (1.5,2.0)};
  19. \node at (axis cs:2.7,3.2) [anchor=90] {$K$};
  20. % Draw x and annotation
  21. \node at (axis cs:1.8,3.2) [anchor=-90] {$x$};
  22. \draw (axis cs:1.8,3.2) circle[radius=0.6];
  23. \addplot[mark=*] coordinates {(1.8,3.2)};
  24. \node at (axis cs:0.8,1.2) [anchor=-90] {$y$};
  25. \draw (axis cs:0.8,1.2) circle[radius=0.6];
  26. \addplot[mark=*] coordinates {(0.8,1.2)};
  27. \end{axis}
  28. \end{tikzpicture}