答案1
欢迎来到 TeX.SE!本网站旨在帮助您在尝试过程中遇到困难时获得帮助。如果您发布尝试,那么回答者就不必从屏幕截图中输入数字。无论如何,这里有一个复制屏幕截图的建议。(如果您使用transform canvas
,请小心使用。)编辑:已修复column
和row sep
s,非常感谢@Skillmon!)
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{matrix,shapes.geometric,positioning}
\begin{document}
\begin{tikzpicture}
\matrix[matrix of nodes,transform canvas={rotate=45},%
nodes={regular polygon,regular polygon sides=4,draw,rotate=-45,shape border rotate=45},
row sep=-\pgflinewidth,column sep=-\pgflinewidth]
(mat)
{03 & 13 & 23 & 33 \\
02 & 12 & 22 & 32 \\
01 & 11 & 21 & 31 \\
00 & 10 & 20 & 30 \\
};
% transform canvas does not transform the bounding box, that's why we need
\path ([xshift=-3mm,yshift=3mm]mat.south west |- mat.north west) rectangle
([xshift=3mm,yshift=-3mm]mat.south east -| mat.north east);
\node at (mat.south west) {$\Phi_1$};
\node at (mat.south east) {$\Phi_2$};
\end{tikzpicture}
\end{document}