zariski-topology.tex 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. \begin{tikzpicture}
  2. \begin{axis}[
  3. axis x line=middle,
  4. axis y line=middle,
  5. grid = major,
  6. grid style={dashed, gray!30},
  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. xtick={-1,0,1,2,3,4,5},
  12. ytick={-1,0,1,2,3,4,5},
  13. xlabel={$U_1 = \mathbb{R} \setminus \mathbb{N}$},
  14. xlabel style={xshift=-2.5cm,yshift=-0.7cm},
  15. ylabel={$U_2 = \mathbb{R} \setminus \mathbb{N}$},
  16. ylabel style={rotate=-90, xshift=1.5cm},
  17. xticklabels={,,},
  18. yticklabels={,,},
  19. tick align=outside,
  20. enlargelimits=true]
  21. % Draw solid square
  22. \addplot[mark=o] coordinates {(0,0) (1,0) (2,0) (3,0) (4,0) (5,0)};
  23. \addplot[mark=o] coordinates {(0,0) (0,1) (0,2) (0,3) (0,4) (0,5)};
  24. \foreach \i in {0,1,2,3,4,5} {
  25. \addplot[mark=none] coordinates {(-0.2,\i) (5.2,\i)};
  26. \addplot[mark=none] coordinates {(\i,-0.2) (\i,5.2)};
  27. }
  28. \addplot[mark=none] coordinates {(0,2) (5,2)};
  29. \end{axis}
  30. \end{tikzpicture}