答案1
是的,矩阵可以让你做到这一点。我为屋顶添加了一个样式,这样你就可以完全专注于矩阵的内容。
\documentclass[tikz,border=3.14mm]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}[roof/.style={path picture={
\draw[#1] ([xshift=\pgflinewidth/2]path picture bounding box.south west)
|- ([xshift=-\pgflinewidth/2,yshift=-\pgflinewidth/2]path picture bounding box.north east)
-- ([xshift=-\pgflinewidth/2]path picture bounding box.south east);
}}]
\matrix[matrix of nodes,nodes in empty cells,{nodes={text width=1cm,align=center}},
roof=dashed,label={[anchor=south west]north west:Artifactory/Nexus}]
{ a & b & c & d \\
& & & \\ };
\end{tikzpicture}
\end{document}