获得向右弯曲的箭头(悬垂的头部,不弯曲)

获得向右弯曲的箭头(悬垂的头部,不弯曲)

代码有什么问题

\documentclass[tikz]{standalone}

% \usetikzlibrary{⟨list of libraries separated by commas⟩}
\usetikzlibrary[trees,shapes,arrows]
\usetikzlibrary{shapes,arrows,chains,positioning}

\begin{document}
\begin{tikzpicture}

\tikzset{
  arrow1/.style={<->, latex-latex, line width=1mm, draw},
  arrow2/.style={->, >=latex, draw}
}

    \coordinate (sw) at (0,0);
    \coordinate (ne) at (6,6);
    \begin{scope}
        % \clip  (sw) rectangle (ne); % clip some region
%       \node[anchor=south west,inner sep=0] (image) at (0,0) {\includegraphics{../Bilder/Explanations/early-abandoning.png}};
    %     [trim=left bottom right top, clip]
%       \draw (3,2) -- ++(70:3cm) -- ++(-50:1cm) -- ++(20:1cm) -- ++(0:1cm);
%       \draw (3,2) -- ++(70:3cm) -- ++(-50:1cm) -- ++(20:1cm) -- ++(0:1cm);
        \draw[line width=1mm] (20,19)  -- ++(60:3cm) -- ++(40:2cm) -- ++(20:1cm) -- ++(0:1cm);
        \draw[line width=1mm] (16,24)  -- ++(-30:3cm) -- ++(10:2cm);
        \draw[arrow1] (20.7,22.6) -- ++(-50:1.1cm);
        \path[arrow2] (20.9,22.9) edge[top bend] ++(45:2cm); % 
%       \begin{scope}[x={(image.south east)},y={(image.north west)}]
%           \draw[help lines,xstep=.1,ystep=.1] (0,0) grid (1,1);
%           \foreach \x in {0,1,...,9} { \node [anchor=north] at (\x/10,0) {0.\x}; }
%           \foreach \y in {0,1,...,9} { \node [anchor=east] at (0,\y/10) {0.\y}; }
%       \end{scope}
    \end{scope}
\end{tikzpicture}
\end{document}

我就是无法摆脱悬垂的箭头并让箭头线变得弯曲:

在此处输入图片描述

我正在使用一个相当旧的 tikz 版本,因为我在 Kubuntu 14.4 上 - 不确定这是否相关。

答案1

这里是没有错误、没有悬垂箭头且带有弯曲线条的东西。

\documentclass[tikz,border=3.14pt]{standalone}

\usetikzlibrary[trees,shapes,arrows]
\usetikzlibrary{shapes,arrows,chains,positioning}

\begin{document}
\begin{tikzpicture}

\tikzset{
  arrow1/.style={<->, latex-latex, line width=1mm, draw},
  arrow2/.style={->, >=latex, draw}
}

    \coordinate (sw) at (0,0);
    \coordinate (ne) at (6,6);
    \begin{scope}
        \draw[line width=1mm] (20,19)  -- ++(60:3cm) -- ++(40:2cm) -- ++(20:1cm) -- ++(0:1cm);
        \draw[line width=1mm] (16,24)  -- ++(-30:3cm) -- ++(10:2cm);
        \draw[arrow1] (20.7,22.6) -- ++(-50:1.1cm);
        \path[arrow2] (20.9,22.9) to[bend left=15] ++(45:2cm); % 
    \end{scope}
\end{tikzpicture}
\end{document}

在此处输入图片描述

相关内容