Permalink
Browse files

Remove interaction directly with the figure

  • Loading branch information...
dmcdougall committed Sep 2, 2012
1 parent 6e36175 commit a93a9e343c0fd767f99769aec9adecbf1193d56e
Showing with 1 addition and 2 deletions.
  1. +1 −2 examples/pylab_examples/arrow_simple_demo.py
@@ -1,6 +1,5 @@
import matplotlib.pyplot as plt
-fig = plt.figure()
-ax = fig.add_subplot(1, 1, 1)
+ax = plt.axes()
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 a93a9e3

Please sign in to comment.