Skip to content

Instantly share code, notes, and snippets.

@satomacoto
Created March 13, 2012 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save satomacoto/2027367 to your computer and use it in GitHub Desktop.
Save satomacoto/2027367 to your computer and use it in GitHub Desktop.
matplotlib - arrow
import matplotlib.pyplot as plt
from matplotlib.patches import Arrow
plt.figure(1, figsize=(3,3))
ax = plt.gca()
ax.annotate("",
xy=(0.2, 0.2), xycoords='data',
xytext=(0.8, 0.8), textcoords='data',
arrowprops=dict(arrowstyle="->",
connectionstyle="arc3"),
)
plt.arrow(0,0,0.5,0.7, shape='full', lw=1, length_includes_head=True, head_width=.02)
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment