TikZ 中缩短的弯曲箭头

TikZ 中缩短的弯曲箭头

我需要展示四面体的旋转对称性,我决定使用 Sketch 生成的 TikZ 代码。到目前为止,我已经包含了 \usepackage{tikz}、\usetikzlibrary{arrows} 和 \usepackage{pstricks}。除了以下代码中显示绕轴旋转的箭头外,我对其他一切都很满意:

% Sketch output, version 0.3 (build 7, Fri Feb 24 21:22:17 2012)
% Output language: PGF/TikZ,LaTeX
\begin{tikzpicture}[line join=round]
\draw[color=blue](-.068,-.403)--(-.275,-1.609);
\draw[color=blue](.07,.402)--(-.068,-.403);
\filldraw[fill=white](.683,-.683)--(-.233,-.111)--(-.82,-.122)--cycle;
\filldraw[fill=lightgray](-.233,-.111)--(.372,.916)--(-.82,-.122)--cycle;
\filldraw(-.82,-.122) circle (2pt);
\filldraw[fill=white](.683,-.683)--(.372,.916)--(-.233,-.111)--cycle;
\filldraw(.683,-.683) circle (2pt);
\filldraw(.372,.916) circle (2pt);
\draw[color=blue](.071,.403)--(.07,.402);
\draw[color=blue](.277,1.609)--(.071,.403);
\filldraw(-.233,-.111) circle (2pt);
\fill[black,font=\footnotesize]
        (.683,-.683) node [below right] {$X$}
        (.372,.916) node [right] {$Y$}
        (-.233,-.111) node [right] {$Y$}
        (-.82,-.122) node [below left] {$X$};\draw (.208,1.207)+(-60:.25)
        [yscale=1.3,->] arc(-60:240:.25);\end{tikzpicture}% End sketch output

我怎样才能使弧线(在最后一行绘制)缩短,以便它实际上看起来像围绕轴旋转(用蓝色绘制)?更好的是,有没有办法在 Sketch 或任何其他 tikz 代码生成环境中描述这一点?如果您愿意,我可以编辑并包含生成此场景的 Sketch 代码。

答案1

yscale=1.3最后一行的 改为稍小的值会1很有帮助。您可以通过-60-40最后一行和上一行的起始角度从 调整为 来避免意外重叠。

示例输出

\documentclass{article}

\usepackage{tikz}

\begin{document}

\begin{tikzpicture}[line join=round]
\draw[color=blue](-.068,-.403)--(-.275,-1.609);
\draw[color=blue](.07,.402)--(-.068,-.403);
\filldraw[fill=white](.683,-.683)--(-.233,-.111)--(-.82,-.122)--cycle;
\filldraw[fill=lightgray](-.233,-.111)--(.372,.916)--(-.82,-.122)--cycle;
\filldraw(-.82,-.122) circle (2pt);
\filldraw[fill=white](.683,-.683)--(.372,.916)--(-.233,-.111)--cycle;
\filldraw(.683,-.683) circle (2pt);
\filldraw(.372,.916) circle (2pt);
\draw[color=blue](.071,.403)--(.07,.402);
\draw[color=blue](.277,1.609)--(.071,.403);
\filldraw(-.233,-.111) circle (2pt);
\fill[black,font=\footnotesize]
        (.683,-.683) node [below right] {$X$}
        (.372,.916) node [right] {$Y$}
        (-.233,-.111) node [right] {$Y$}
        (-.82,-.122) node [below left] {$X$};\draw (.208,1.207)+(-40:.25)
        [yscale=0.5,->] arc(-40:240:.25);
\end{tikzpicture}

\end{document}

答案2

它并不漂亮,但可能更好一点:

\documentclass{article}
\usepackage{tikz}      

\begin{document}
% Sketch output, version 0.3 (build 7, Fri Feb 24 21:22:17 2012)
% Output language: PGF/TikZ,LaTeX
\begin{tikzpicture}[line join=round]
\draw[color=blue](-.068,-.403)--(-.275,-1.609);
\draw[color=blue](.07,.402)--(-.068,-.403);
\filldraw[fill=white](.683,-.683)--(-.233,-.111)--(-.82,-.122)--cycle;
\filldraw[fill=lightgray](-.233,-.111)--(.372,.916)--(-.82,-.122)--cycle;
\filldraw(-.82,-.122) circle (2pt);
\filldraw[fill=white](.683,-.683)--(.372,.916)--(-.233,-.111)--cycle;
\filldraw(.683,-.683) circle (2pt);
\filldraw(.372,.916) circle (2pt);
\draw[color=blue](.071,.403)--(.07,.402);
\draw[color=blue](.277,1.609)--(.071,.403);
\filldraw(-.233,-.111) circle (2pt);
\fill[black,font=\footnotesize]
        (.683,-.683) node [below right] {$X$}
        (.372,.916) node [right] {$Y$}
        (-.233,-.111) node [right] {$Y$}
%        (-.82,-.122) node [below left] {$X$};\draw (.208,1.207)+(-60:.25)
 (-.82,-.122) node [below left] {$X$};\draw (.308,1.307)+(-60:.25)
%        [yscale=1.3,->] arc(-60:240:.25);\end{tikzpicture}% End sketch output
    [xscale=0.9,yscale=.4,->,rotate=30] arc(-40:290:.25);\end{tikzpicture}% End sketch output


\end{document}

在此处输入图片描述

相关内容