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

DOC: we do not need the blit call in on_draw #28231

Merged
merged 1 commit into from
May 16, 2024

Conversation

tacaswell
Copy link
Member

on_draw is triggered via the draw_event callback which is processed after the rest of the rendering in finished, but before the buffer is painted to the screen so the blit call was at best redundent (causing two copies of the buffer from our side to the GUI side) and at worst causes segfaults in some versions of Qt.

Closes #28002

on_draw is triggered via the draw_event callback which is processed after the
rest of the rendering in finished, but before the buffer is painted to the
screen so the `blit` call was at best redundent (causing two copies of the
buffer from our side to the GUI side) and at worst causes segfaults in some
versions of Qt.

Closes matplotlib#28002
@tacaswell tacaswell added this to the v3.9.1 milestone May 15, 2024
@github-actions github-actions bot added the Documentation: examples files in galleries/examples label May 15, 2024
@timhoffm timhoffm merged commit 9735c78 into matplotlib:main May 16, 2024
21 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 16, 2024
QuLogic added a commit that referenced this pull request May 16, 2024
…231-on-v3.9.x

Backport PR #28231 on branch v3.9.x (DOC: we do not need the blit call in on_draw)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: examples files in galleries/examples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault from path editor example with QtAgg
2 participants