pgf tikz for LaTeX 如何使用节点的 x 和 y 坐标
pgf tikz for LaTeX how can I use x and y coordinates with node
我有以下矩形:
\begin{tikzpicture}
\draw[thin] (0,0) -- (7,0) -- (7,5) -- (7,5) -- (0,5) -- (0,0);
\end{tikzpicture}
我想使用 node.js 为矩形的宽度和高度放置一个文本标签。但是不知道如何指定文本标签的x,y坐标。
我可以对节点使用 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}
我有以下矩形:
\begin{tikzpicture}
\draw[thin] (0,0) -- (7,0) -- (7,5) -- (7,5) -- (0,5) -- (0,0);
\end{tikzpicture}
我想使用 node.js 为矩形的宽度和高度放置一个文本标签。但是不知道如何指定文本标签的x,y坐标。
我可以对节点使用 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}