We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 284120c commit eb2366cCopy full SHA for eb2366c
1 file changed
mprof.py
@@ -620,7 +620,9 @@ def mouse_click_handler(event):
620
pl.draw()
621
return
622
623
- pl.gcf().canvas.mpl_connect('motion_notify_event', mouse_motion_handler)
+ # Disable hovering if there are too many rectangle to prevent slow down
624
+ if len(rectangles) < 100:
625
+ pl.gcf().canvas.mpl_connect('motion_notify_event', mouse_motion_handler)
626
pl.gcf().canvas.mpl_connect('button_release_event', mouse_click_handler)
627
628
if timestamps:
0 commit comments