Skip to content

BUG: Quiver must copy U, V, C args so they can't change before draw() #4250

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

Merged
merged 1 commit into from
Mar 21, 2015

Conversation

efiring
Copy link
Member

@efiring efiring commented Mar 20, 2015

The bug was revealed when a user was plotting to successive subplots inside a loop iterating through a numerical integration. U and V were references to objects that were updated inside the loop, but the figure was not drawn until the end. Therefore all panels showed the quiver of the last iteration.

@tacaswell tacaswell added this to the next point release milestone Mar 20, 2015
@@ -82,6 +82,14 @@ def test_quiver_single():

ax.quiver([1], [1], [2], [2])

@cleanup
Copy link
Member

Choose a reason for hiding this comment

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

pep8 is complaining about one too few new lines here.

tacaswell added a commit that referenced this pull request Mar 21, 2015
BUG : Quiver must copy U, V, C args so they can't change before draw()
@tacaswell tacaswell merged commit 166e9cc into matplotlib:master Mar 21, 2015
@tacaswell
Copy link
Member

@efiring Is this worth back-porting to the color-overhaul branch?

@efiring
Copy link
Member Author

efiring commented Mar 21, 2015

Yes, I think it is worth backporting. I've never been 100% sure what procedure to use for this; is it OK to simply cherry-pick the commit to the appropriate branch locally, and then push to github? Is that the way you have been doing it?

@tacaswell
Copy link
Member

That is what I have been doing on the premise that if I can merge someone elses PR to this branch it's kosher to merge it to an other branch.

I'll take care of moving this one over.

tacaswell added a commit that referenced this pull request Mar 21, 2015
BUG : Quiver must copy U, V, C args so they can't change before draw()
@tacaswell
Copy link
Member

back-ported as 5852d83

@efiring
Copy link
Member Author

efiring commented Mar 21, 2015

Thank you.

@efiring efiring deleted the quiver_copy branch March 21, 2015 23:51
QuLogic added a commit to QuLogic/matplotlib that referenced this pull request Jun 24, 2021
For the same reason as Quiver in matplotlib#4250.
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.

2 participants