16

I'm wondering if it's possible to draw, by \tikzstyle, this style of arrow : +++++>. Thanks, Simon

silama
  • 163
  • 3

1 Answers1

22

Here is an idea: use dashed, and define a decoration which draws the vertical line which crosses each dash to produce a plus:

\usetikzlibrary{decorations.markings}
\tikzset{
  pluses/.style={
    dashed,
    decoration={markings,
    mark=between positions 1.5pt and 1 step 6pt with {
       \draw[-] (0,1.5pt) -- (0,-1.5pt);
       }
    },
    postaction=decorate,
  }
}
\begin{tikzpicture}
\draw[very thin, pluses, ->] (0,0) to[bend left=45] (2,2);
\draw[very thick, red, pluses, ->] (-1,1) -- (2,0);
\end{tikzpicture}

Result:

Result

JLDiaz
  • 55,732