-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Bug]: Zoom rubber band lags in larger window #23968
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
Comments
How large is large enough to be slow? |
The GIF that I posted is a window stretched over two 24" monitors, each having 1920x1080 resolution. For me, the lag becomes noticeable in a 1920x1080 window. Note that the same lag does not exist or is very low in the matplotlib 2.2.5 version with the Qt5Agg backend. There is no lag in TkAgg backend for any window size. Please try comparing the performance of rubber band in the following code between Matplotlib version 2.2.5 and 3.6.0.
|
Update On further testing, I found that lag is there even when dragging legends. So I checked The delay was mainly due to following statement in
The function call was added as part of #11845 commit. On reverting the changes done in commits #11731 and #11845, The lag was gone. Everything is working as expected. So I think, as window size increases it takes more time for Am I doing something wrong? |
Bug summary
Zoom rubber band is smooth in small window. But when I increase the size of the window the performance degrades.
Here I have stretched the window across two monitors for illustration.
Code for reproduction
Actual outcome
Expected outcome
Additional information
No response
Operating system
Windows
Matplotlib Version
3.6
Matplotlib Backend
QtAgg
Python version
3.8.10
Jupyter version
No response
Installation
pip
The text was updated successfully, but these errors were encountered: