zariski-topology.tex 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. \documentclass[varwidth=true, border=2pt]{standalone}
  2. \usepackage{tikz}
  3. \usepackage{pgfplots}
  4. \usepackage{amsmath,amssymb}
  5. \begin{document}
  6. \begin{tikzpicture}
  7. \begin{axis}[
  8. axis x line=middle,
  9. axis y line=middle,
  10. grid = major,
  11. grid style={dashed, gray!30},
  12. xmin= 0, % start the diagram at this x-coordinate
  13. xmax= 5, % end the diagram at this x-coordinate
  14. ymin= 0, % start the diagram at this y-coordinate
  15. ymax= 5, % end the diagram at this y-coordinate
  16. xtick={-1,0,1,2,3,4,5},
  17. ytick={-1,0,1,2,3,4,5},
  18. xlabel={$U_1 = \mathbb{R} \setminus \mathbb{N}$},
  19. xlabel style={xshift=-2.5cm,yshift=-0.7cm},
  20. ylabel={$U_2 = \mathbb{R} \setminus \mathbb{N}$},
  21. ylabel style={rotate=-90, xshift=1.5cm},
  22. xticklabels={,,},
  23. yticklabels={,,},
  24. tick align=outside,
  25. enlargelimits=true]
  26. % Draw solid square
  27. \addplot[mark=o] coordinates {(0,0) (1,0) (2,0) (3,0) (4,0) (5,0)};
  28. \addplot[mark=o] coordinates {(0,0) (0,1) (0,2) (0,3) (0,4) (0,5)};
  29. \foreach \i in {0,1,2,3,4,5} {
  30. \addplot[mark=none] coordinates {(-0.2,\i) (5.2,\i)};
  31. \addplot[mark=none] coordinates {(\i,-0.2) (\i,5.2)};
  32. }
  33. \addplot[mark=none] coordinates {(0,2) (5,2)};
  34. \end{axis}
  35. \end{tikzpicture}
  36. \end{document}