Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Only use asynchronous redraw methods when handling GUI events in Qt5Agg (fix #4604)#4612

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 2 commits intomatplotlib:masterfrompwuertz:fix_4604
Jul 22, 2015

Conversation

pwuertz
Copy link
Contributor

When handling events like mouse movements during zoom/pan, the Qt5 backend forced a redraw of the Agg canvas for every event. Redraw operations should be done only when the GUI is ready to display another frame, else the rendering performance is going to be crushed on systems where Qt emits events more frequently.

@pwuertz
Copy link
ContributorAuthor

For testing purposes I removed the update/redraw() switch for windows that was introduced because windows users reported a insufficient amount of actual redraws on Qt4Agg/Win. It could be possible that this was actually the same problem back then if Qt4/Win emitted events more frequently than Qt4/X11 or Qt4/OSX. Could a Windows user confirm that Qt5Agg is working fine with this PR?

@pwuertzpwuertz changed the titleOnly use asynchronous redraw methods when handling GUI events in Qt5AggOnly use asynchronous redraw methods when handling GUI events in Qt5Agg (fix #4604)Jul 10, 2015
@tacaswell
Copy link
Member

The_priv_update code is duplicated in the qt4agg backend as well.

@tacaswelltacaswell modified the milestone:next point releaseJul 17, 2015
@tacaswell
Copy link
Member

I can confirm both the bug and that this fixes it.

Both the qt4 and qt5 backends work fine wrt pan/zoom updates for me with this.

I am going to merge this now and make a note with the RC that this will need testing on mac + windows.

tacaswell added a commit that referenced this pull requestJul 22, 2015
FIX: Only use asynchronous redraw methods when handling GUI events in Qt5AggFix#4604
@tacaswelltacaswell merged commitbb9ec1b intomatplotlib:masterJul 22, 2015
@pwuertzpwuertz deleted the fix_4604 branchFebruary 24, 2016 18:46
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
v1.5.0
Development

Successfully merging this pull request may close these issues.

2 participants
@pwuertz@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp