Permalink
Browse files

Add a *simple* arrow example

  • Loading branch information...
1 parent cf7618c commit 6e361753a1424d2ea186956e5262e47ba0a2f998 @dmcdougall dmcdougall committed Sep 1, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 examples/pylab_examples/arrow_simple_demo.py
@@ -0,0 +1,6 @@
+import matplotlib.pyplot as plt
+
+fig = plt.figure()
+ax = fig.add_subplot(1, 1, 1)
+ax.arrow(0, 0, 0.5, 0.5, head_width=0.05, head_length=0.1, fc='k', ec='k')
+plt.show()

0 comments on commit 6e36175

Please sign in to comment.