Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下矩形:
\begin{tikzpicture} \draw[thin] (0,0) -- (7,0) -- (7,5) -- (7,5) -- (0,5) -- (0,0); \end{tikzpicture}
我想使用节点为矩形的宽度和高度放置一个文本标签。但不知道如何指定文本标签的 x、y 坐标。
我可以将 x,y 坐标与节点一起使用吗?
您可以使用以下at (x, y)语法来做到这一点:
at (x, y)
\begin{tikzpicture} \draw[thin] (0,0) -- (7,0) -- (7,5) -- (7,5) -- (0,5) -- (0,0); \node at (3.5, -0.5) {7cm}; \node at (-0.5, 2.5) {5cm}; \end{tikzpicture}