New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in ax.arrow() #1113
Comments
@leejjoon : Any thoughts, as one who knows the arrow code so well? |
My guess is perhaps the shape of the arrow head is affected by the current transform, but I tried using square axes and it still looks weird to me. Does it look weird to anyone else? |
On setting This, then, raises an interesting question: Should the arrow be squashed with the axes? Since the base and tip are decided in the method call, we know already that the arrow head will not spill over the axes boundary. |
Axes.arrow creates a simple Polygon patch. And by default the coordinates of polygon is in data transform. On the other hand, I think most of current issue can be solved by using annotate (http://matplotlib.sourceforge.net/users/annotations_guide.html#annotating-with-arrow). |
@leejjoon I agree. I will open a PR with a note in the ax.arrow docstring. I think that should suffice. |
Addressed in #1278. |
I was playing around, trying to give a simple version of the use of arrow in an attempt to fix issue #1096, and I think I found a bug. The arrow head does no sit square with the arrow base. Below is a snippet that reproduces the bug:
And here is my sample output.
The text was updated successfully, but these errors were encountered: