Skip to content
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

Super short lines with arrows do not act well #4911

Merged
merged 1 commit into from Aug 14, 2015

Conversation

jrevans
Copy link

@jrevans jrevans commented Aug 12, 2015

I looked at #3930, but that seems to fix a different problem. The issue here is when there is no room for the arrow head, the '_get_arrow_wedge' method will throw several 'RuntimeWarnings' when it attempts to calculate the arrow head with garbage floats. Since there is no physical space for an arrow head to appear, it makes sense to just skip it. Visually there is no difference.

This addresses an issue in #4897.

@WeatherGod
Copy link
Member

This makes sense to me. Waiting for Travis to complete.

@@ -3308,7 +3308,9 @@ def transmute(self, path, mutation_size, linewidth):
x0, y0 = path.vertices[0]
x1, y1 = path.vertices[1]

if self.beginarrow:
# If there is no room for an arrow and a line, then skip the arrow
hasBeginArrow = self.beginArrow and not ((x0==x1) and (y0==y1))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spelling error, should be lower case beginarrow

Can you use has_begin_arrow for the local variable instead of camel case please?

Probably the same thing with endarrow

@tacaswell tacaswell added this to the next point release milestone Aug 14, 2015
@tacaswell tacaswell mentioned this pull request Aug 14, 2015
@tacaswell tacaswell merged commit 6598fad into matplotlib:master Aug 14, 2015
@jrevans jrevans deleted the issue08 branch August 17, 2015 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants