title: how to make arrow that loops in matplotlib?
body: <p>what is the right way to draw an arrow that loops back to point to its origin in matplotlib? i tried:</p>
  
  <pre><code>plt.figure()
  plt.xlim([0, 1])
  plt.ylim([0, 1])
  plt.annotate("", xy=(0.6, 0.9),
               xycoords="figure fraction",
               xytext = (0.6, 0.8),
               textcoords="figure fraction",
               fontsize = 10, \
               color = "k",
               arrowprops=dict(edgecolor='black',
                               connectionstyle="angle,angleA=-180,angleB=45",
                               arrowstyle = '&lt;|-',
                               facecolor="k",
                               linewidth=1,
                               shrinkA = 0,
                               shrinkB = 0))
  plt.show()
  </code></pre>
  
  <p>this doesn't give the right result:</p>
  
  <p><a href="https://i.stack.imgur.com/DfHPl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DfHPl.png" alt="arrow"></a></p>
  
  <p>the <code>connectionstyle</code> arguments are hard to follow from this page (<a href="http://matplotlib.org/users/annotations_guide.html" rel="noreferrer">http://matplotlib.org/users/annotations_guide.html</a>).</p>
  
  <p>i'm looking for is something like <a href="http://i.istockimg.com/file_thumbview_approve/25282609/6/stock-illustration-25282609-arrow-sign-refresh-reload-loop-rotation-pictogram-black-icon.jpg" rel="noreferrer">this</a> or <a href="https://cdn0.iconfinder.com/data/icons/arrows-volume-5/48/280-512.png" rel="noreferrer">this</a>:</p>
  
  <p><a href="https://i.stack.imgur.com/nVPdN.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nVPdN.png" alt="loopy arrow"></a></p>
  
  <p><strong>update:</strong> the answer linked to does not show how do this with <code>plt.annotate</code> which has other features i want to use. the proposal to use <code>$\circlearrowleft$</code> marker is not a real solution.</p>