來自“\node”的非法計量單位

來自“\node”的非法計量單位

我有以下 tikz 命令

        \begin{tikzpicture}
            \node at (3.2,0) {$\mathbb{R}$};
            \node at (-.2,-.25) {$I$};
            \draw (-3,0) --(3,0);

            \node at (-1.3,2) {$U$};

            \node at (2.2,1.6) {$^+U$};
            \draw plot[smooth] coordinates
                {(1,0)(2,1)(0,3)(-2,0)};

            \node at (2.2,-1.6) {$^-U$};
            \draw plot[smooth] coordinates
                {(1,0)(2,-1)(0,-3)(-2,0)};

            \node at (.3.4,1.5) {$z$};
            \node at (.3,1.5) {\textbullet};
            \draw[dashed] (.3,0) -- (.3,1.5);

            \node at (.3.4,-1.5) {$\conj{z}$};
            \node at (.3,-1.5) {\textbullet};
            \draw[dashed] (.3,0) -- (.3,-1.5);
        \end{tikzpicture}

當我嘗試編譯它時,控制台顯示Illegal unit of measure (pt inserted).at thelines \node at (.3.4,-1.5)。其他線路好像沒有問題。這裡有什麼問題嗎?

答案1

座標中的第一個點是錯誤的......它應該是

 \node at (3.4,1.5) {$z$};

或者可能

\node at (.3,1.5) {$z$};

相關內容