旋轉後的圖形移至文檔右側

旋轉後的圖形移至文檔右側

我想在子圖環境中使用 tikz-3dplot 旋轉 3d 實體(我也使用 IEEEtran 文檔類別)。當我執行旋轉時,圖形會按預期旋轉,但移動到列的最右側(在 2 列文件中)。例如,我在一列中有一個子圖矩陣 {ab \ cd} 。如果我想在位置c上繪製圖形,它會覆蓋位置d的右側。有什麼建議可以糾正這個問題嗎?

\subfigure[$\xi$]{
\tdplotsetmaincoords{60}{125}
\tdplotsetrotatedcoords{0}{0}{10}
\begin{tikzpicture}
        [ %tdplot_main_coords,
          tdplot_rotated_coords,
          cube/.style={very thick,black},
            grid/.style={very thin,gray},
            axis/.style={-latex,black,thin}]


    %draw the axes
    \draw[axis,tdplot_main_coords] (0,0,0) -- (1.2,0,0) node[anchor=east]{$\xi_{1}$};
    \draw[axis,tdplot_main_coords] (0,0,0) -- (0,1.2,0) node[anchor=west]{$\xi_{2}$};
    \draw[axis,tdplot_main_coords] (0,0,0) -- (0,0,2) node[anchor=west]{$\xi_{3}$};

    %draw the top and bottom of the cube
    \draw[cube] (0,0,0) -- (-0.2,0.3464,0.4) -- (-0.4,0,0.8);
    \draw[cube,dotted] (-0.4,0,0.8) -- (-0.2,-0.3464,0.4) -- (0,0,0);
    \draw[cube] (0.4,0,0.4) -- (0.2,0.3464,0.8) -- (0,0,1.2) -- (0.2,-0.3464,0.8) -- cycle;

    %draw the edges of the cube
    \draw[cube] (0,0,0) -- (0.4,0,0.4);
    \draw[cube] (-0.2,0.3464,0.4) -- (0.2,0.3464,0.8);
    \draw[cube] (-0.4,0,0.8) -- (0,0,1.2);
    \draw[cube,dotted] (-0.2,-0.3464,0.4) -- (0.2,-0.3464,0.8);
    \end{tikzpicture}
    }

相關內容