答案1
我猜你的困难在于缩放整个图形和缩放文本:参见和[scale=.2]
内部[scale=1.5]
。node
其他事情只是基本的rectangle
:circle
,,,,,,,等等。opacity
grid
line width
rounded corners
\documentclass[tikz,border=1mm]{standalone}
\pagecolor{black!65}
\begin{document}
\begin{tikzpicture}[scale=.2,rounded corners=2pt]
\draw[white,very thin,opacity=.05] (0,0) grid (32,25);
\begin{scope}[line width=2.2pt]
\draw[white] (1,1) rectangle (31,24) (1,1) node[above right,scale=1.5] {$v$};
\draw[red] (2,5) rectangle (26,23) (2,23) node[below right,scale=1.3] {$v_m$};
\draw[green] (8,2) rectangle (30,20) (30,2) node[above left,scale=1.2] {$v_c$};
\draw[yellow] (9,6) rectangle +(13,6) (9,6) node[above right] {$v_f$};
\draw[blue] (9,13) rectangle +(12,6) (9,13) node[above right] {$v_k$};
\draw[magenta] (12,7) rectangle +(8,4) (12,7) +(1,1) node[scale=.8] {$v_0$};
\draw[orange] (14,8) rectangle +(3,2) node[midway,scale=.8] {$v_d$};
\fill[pink] (18,9) circle(.25) +(1,0 )node[scale=.8] {$v_u$};
\end{scope}
\end{tikzpicture}
\end{document}