FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Only use asynchronous redraw methods when handling GUI events in Qt5Agg (fix #4604) by pwuertz · Pull Request #4612 · matplotlib/matplotlib · GitHub

Repository navigation

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

Merged
tacaswell merged 2 commits into
matplotlib:masterfrom
pwuertz:fix_4604
Jul 22, 2015
Merged

tacaswell merged 2 commits into
matplotlib:masterfrom
pwuertz:fix_4604

Conversation

pwuertz commented Jul 10, 2015

Copy link
Copy Markdown
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 commented Jul 10, 2015

Copy link
Copy Markdown
Contributor Author

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?

pwuertz changed the title Only use asynchronous redraw methods when handling GUI events in Qt5Agg Only use asynchronous redraw methods when handling GUI events in Qt5Agg (fix #4604) Jul 10, 2015

Copy link
Copy Markdown
Member

The _priv_update code is duplicated in the qt4agg backend as well.

tacaswell modified the milestone: next point release Jul 17, 2015

Copy link
Copy Markdown
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 request Jul 22, 2015
FIX: Only use asynchronous redraw methods when handling GUI events in Qt5Agg

Fix #4604
tacaswell merged commit bb9ec1b into matplotlib:master Jul 22, 2015
pwuertz deleted the fix_4604 branch February 24, 2016 18:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL