旋转后的图像移至文档右侧

旋转后的图像移至文档右侧

我想在子图环境中使用 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}
    }

相关内容