TikZ 只绘制箭头,而不绘制圆弧本身

TikZ 只绘制箭头,而不绘制圆弧本身

我尝试使用 TkiZ 包将一些绘图叠加到图像上,到目前为止,除了在范围内绘制圆弧外,其他一切都正常。这里只显示箭头,但没有显示圆弧本身。如下图所示,红色箭头显示在所需位置,以及所有其他线和节点。

我是否缺少了什么来正确绘制代表角度的弧?

\documentclass[border=5mm]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
    \node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=0.9\textwidth]{Medien/legdiagram.jpg}};
    \begin{scope}[x={(image.south east)},y={(image.north west)}]
    \draw[ultra thick, fill=black] (0.225,0.636) circle (5pt) node[above=35] {BC} -- (0.425,0.636) circle (5pt) node[below=20] {CF} -- (0.66,0.735) circle (5pt) node[above=20] {FT} -- (0.78,0.08) circle (5pt) node[below=5] {F};
    \draw[ultra thick, dashed] (0.425,0.636) -- plot({0.425+0.26*cos(15+22.84)},{0.636+0.26*sin(15+22.84)})  -- (0.66,0.735);
    \draw[->,ultra thick,red,domain=22.84:37.84] -- plot({0.425+0.2*cos(\x)},{0.636+0.2*sin(\x)})  node[below=45]{femur Offset};
    \draw[ultra thick, dashed] (0.66,0.735) -- plot({0.66+0.38*cos(-80.63+41)},{0.735+0.38*sin(-80.63+41)}) -- (0.78,0.08);
    \draw[->,ultra thick,red,domain=-80.63:-39.63] -- plot({0.66+0.2*cos(\x)},{0.735+0.2*sin(\x)}) node[right=15] {tibia Offset};
    \end{scope}
\end{tikzpicture}


\end{document}

绘制覆盖图像

答案1

您可能希望获得以下图像:

在此处输入图片描述

您的代码中有两个小错误。如下所示

\draw[->,ultra thick,red,domain=22.84:37.84]  -- % <--- there is not starting coordinate
        plot({0.425+0.2*cos(\x)},{0.636+0.2*sin(\x)})  node[below=45]{femur Offset};

你没有定义起始坐标。因此tikz失去了应该绘制的内容。你只需要擦除--

\documentclass[border=5mm]{standalone}
\usepackage{tikz}

\begin{document}

\begin{tikzpicture}
\node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics[width=0.9\textwidth]{example-image}};%Medien/legdiagram.jpg}};
    \begin{scope}[x={(image.south east)},y={(image.north west)}]
    \draw[ultra thick, fill=black] (0.225,0.636) circle (5pt) node[above=35] {BC} -- (0.425,0.636) circle (5pt) node[below=20] {CF} -- (0.66,0.735) circle (5pt) node[above=20] {FT} -- (0.78,0.08) circle (5pt) node[below=5] {F};
    \draw[ultra thick, dashed]
        (0.425,0.636) --  plot({0.425+0.26*cos(15+22.84)},{0.636+0.26*sin(15+22.84)})
                      -- (0.66,0.735);
    \draw[->,ultra thick,red,domain=22.84:37.84]  % -- % <--- this -- should be erased
        plot({0.425+0.2*cos(\x)},{0.636+0.2*sin(\x)})  node[below=45]{femur Offset};
    \draw[ultra thick, dashed]
        (0.66,0.735) -- plot({0.66+0.38*cos(-80.63+41)},{0.735+0.38*sin(-80.63+41)})
                     -- (0.78,0.08);
    \draw[->,ultra thick,red,domain=-80.63:-39.63] % -- % <--- this -- should be erased
        plot({0.66+0.2*cos(\x)},{0.735+0.2*sin(\x)}) node[right=15] {tibia Offset};
    \end{scope}
\end{tikzpicture}

相关内容