X Tutup
Skip to content

Avoid division by zero if headlength=0 for quiver#7525

Merged
efiring merged 3 commits intomatplotlib:masterfrom
rmjarvis:quiver-nohead
Nov 28, 2016
Merged

Avoid division by zero if headlength=0 for quiver#7525
efiring merged 3 commits intomatplotlib:masterfrom
rmjarvis:quiver-nohead

Conversation

@rmjarvis
Copy link
Copy Markdown
Contributor

I use quiver a lot with headless arrows to make whisker plots. But the code always outputs a division by zero warning, which I need to suppress. I don't think there is an open issue about this, but it was mentioned on list over four years ago.

Anyway, the fix is simple, so here it is.

@NelleV NelleV changed the title Avoid division by zero if headlength=0 for quiver [MRG+1] Avoid division by zero if headlength=0 for quiver Nov 28, 2016
Copy link
Copy Markdown
Member

@NelleV NelleV left a comment

Choose a reason for hiding this comment

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

LGTM.
i don't know why appveyar is unhappy.

@rmjarvis
Copy link
Copy Markdown
Contributor Author

i don't know why appveyar is unhappy.

It appears to have been unhappy for a while now, so I suspect it is something on master unrelated to this PR. AFAICT, the last commit on master that passed AppVeyor was on Nov 19, when #7481 was merged. I don't think there is anything afterward that passes AppVeyor.

Copy link
Copy Markdown
Contributor

@dopplershift dopplershift left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@efiring efiring merged commit b9c3b64 into matplotlib:master Nov 28, 2016
@efiring
Copy link
Copy Markdown
Member

efiring commented Nov 28, 2016

Thank you, @rmjarvis.

efiring added a commit that referenced this pull request Nov 28, 2016
[MRG+1] Avoid division by zero if headlength=0 for quiver
@efiring
Copy link
Copy Markdown
Member

efiring commented Nov 28, 2016

backported to 2.x as ab65830.

@QuLogic QuLogic added this to the 2.0 (style change major release) milestone Nov 28, 2016
@QuLogic QuLogic changed the title [MRG+1] Avoid division by zero if headlength=0 for quiver Avoid division by zero if headlength=0 for quiver Nov 28, 2016
@rmjarvis rmjarvis deleted the quiver-nohead branch November 28, 2016 21:26
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.

5 participants

X Tutup