答案1
阅读文档中的第一个教程TikZ
并尝试理解这一点:
\documentclass[border=2mm, tikz]{standalone}
\begin{document}
\begin{tikzpicture}[font=\ttfamily]
\foreach \i in {0,1,2,3}{
\foreach \j [evaluate=\j as \ni using {int(\i*2+\j)}] in {0,1}
\node[draw, dashed, fill=blue!30, opacity=.5, minimum size=1cm] (\ni) at (\i,\j) {\ni};}
\draw[->] (0.south west)--++(90:2.5) node[above]{x\_domains=(0y)};
\draw[->] (0.south west)--++(0:4.5) node[right]{y\_domains=(0x)};
\end{tikzpicture}
\end{document}