title: Arrow on a line plot with matplotlib
body: <p>I'd like to add an arrow to a line plot with <code>matplotlib</code> like in the plot below (drawn with <a href="http://pgfplots.sourceforge.net/" rel="noreferrer"><code>pgfplots</code></a>).</p>
  
  <p><a href="https://i.stack.imgur.com/eQhV0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/eQhV0.png" alt="enter image description here"></a></p>
  
  <p>How can I do (position and direction of the arrow should be parameters ideally)?</p>
  
  <p>Here is some code to experiment.</p>
  
  <pre><code>from matplotlib import pyplot
  import numpy as np
  
  t = np.linspace(-2, 2, 100)
  plt.plot(t, np.sin(t))
  plt.show()
  </code></pre>
  
  <p>Thanks.</p>