Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add a *simple* arrow example #1187

Merged
merged 2 commits into from Sep 5, 2012

Conversation

Projects
None yet
4 participants
Member

dmcdougall commented Sep 1, 2012

The current arrow example is rather long. As requested in a comment in #1096, this provides a much simpler arrow example for users to look at.

This pull request fails (merged 6e36175 into 4c1e36d).

@pelson pelson and 1 other commented on an outdated diff Sep 2, 2012

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)
@pelson

pelson Sep 2, 2012

Member

Even simpler:

ax = plt.axes()
ax.arrow(...)

?

@dmcdougall

dmcdougall Sep 2, 2012

Member

Ah yes. Sorry! This is debris from the object oriented interface. I'm a heavy OO user, so when I write I examples I use the OO and then convert them to pyplot when I'm done. I'll fix this.

This pull request fails (merged a93a9e3 into 4c1e36d).

@mdboom mdboom added a commit that referenced this pull request Sep 5, 2012

@mdboom mdboom Merge pull request #1187 from dmcdougall/arrow_example
Add a *simple* arrow example
61bdcc3

@mdboom mdboom merged commit 61bdcc3 into matplotlib:master Sep 5, 2012

1 check failed

default The Travis build failed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment