-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Rewrite cursor example to include speedup possibilities #15644
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
Conversation
7b759ba
to
f7e2517
Compare
7cb1770
to
013d478
Compare
013d478
to
38c6d73
Compare
examples/misc/cursor_demo_sgskip.py
Outdated
ax.set_title('Simple cursor') | ||
ax.plot(x, y, 'o') | ||
cursor = Cursor(ax) | ||
fig.canvas.mpl_connect('on_mouse_move', cursor.mouse_move) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cursor.on_mouse_move
(below a few more times as well)
I think this could be unsgskipped? Sure the image would be static, but at least this would catch the AttributeError...
Also the event name is motion_notify_event...
examples/misc/cursor_demo_sgskip.py
Outdated
|
||
For simplicity, this assumes that *x* values of he data is sorted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"the data" (typo)
38c6d73
to
1f6d692
Compare
1f6d692
to
260aa45
Compare
PR Summary