1

I'd like to produce a wavy arrow, but I'd like the oscillations of the arrow to begin large at the tail and end small at the head. Anybody know of a way of accomplishing that?

3

Assuming TikZ is fine. You can plot a function of the form sin(x)*exp(-x).

enter image description here

\documentclass[border=4mm]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw [-latex,samples=200,domain=0:10] plot (\x,{2*sin(\x*3 r)*exp(-\x/4)});
\end{tikzpicture}
\end{document}
  • Very cool, works perfect and is easily amended for size and shape! Only part of this I don't quite understand is what the 'r' is doing there. Something about radians? – Addem Nov 24 '15 at 23:11
  • 1
    @Addem Yes, the sin function assumes degrees by default, with the r you get radians. – Torbjørn T. Nov 24 '15 at 23:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.