Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix span stay blit #5681

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 3 commits into from
Dec 15, 2015
Merged

Fix span stay blit #5681

merged 3 commits into from
Dec 15, 2015

Conversation

tacaswell
Copy link
Member

No description provided.

The rect properties for the 'live' rect were being forwarded re-used
for the stay artist, however if blitting is used, then 'animated' is
set which exclude the artist from the normal draw tree.
Force a full re-draw on the last span is not in the blit background
@tacaswell tacaswell added this to the Critical bugfix release (1.5.1) milestone Dec 15, 2015
@mdboom
Copy link
Member

mdboom commented Dec 15, 2015

Works for me.

mdboom added a commit that referenced this pull request Dec 15, 2015
@mdboom mdboom merged commit e8d8451 into matplotlib:v1.5.x Dec 15, 2015
@tacaswell tacaswell deleted the fix_span_stay_blit branch December 15, 2015 13:27
@@ -1473,6 +1473,7 @@ def new_axes(self, ax):
transform=trans,
visible=False,
**self.rectprops)
self.stay_rect.set_animated(False)
Copy link
Member

Choose a reason for hiding this comment

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

Trying to make sure I understand this bug (and make sure this is the right fix). Essentially, self.rectprops is going to have an "animated" entry that will be set to True when blitting is turned on. This, I think, is the essential bug that gets fixed in this line, because a static rectangle object isn't ever intended to be animated. So this part I am good with.

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.

3 participants