答案1
正如 flaw 在评论中所说,这是一个“为我做”的问题......
无论如何,我估计,绘制“表格”的简单方法很简单。使用 TikZ 并不难:
您可以使用matrix
或 ,simple nodes
就像我在上图中使用的那样。
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{arrows.meta, positioning, quotes}
\usepackage{siunitx}
\begin{document}
\begin{tikzpicture}[
node distance = 0mm,
box/.style = {draw=blue, very thick, minimum size=24mm,
outer sep=0mm, font=\Large\bfseries},
every path/.style = {ultra thick,-Stealth, pos=0.7}
]
\node (a) [box,label=A,label=left:A] {AA};
\node (b) [box,right=of a,label=B] {AB};
\node (c) [box,below=of a,label=left:A] {BA};
\node (d) [box,right=of c] {BB};
%
\node[above=5mm of a.north east] {One Dimension};
\node[rotate=90] at ([xshift=-9mm] a.south west) {Second Dimension};
%
\coordinate[below=5mm of a.north] (a1);
\coordinate[left =5mm of b.east] (b1);
\coordinate[right=5mm of c.west] (c1);
\coordinate[above=5mm of d.south] (d1);
%
\draw (a1 -| b.north) edge ["\SI{2}{\%}"] (a1)
(c1) edge ["\SI{2}{\%}" '] (c1 |- a.west)
(d1) edge ["\SI{2}{\%}"] (d1 -| c.south)
(b1 |- d.east) to ["\SI{3}{\%}"] (b1);
\end{tikzpicture}
\end{document}