Skip to content

Get ax from mouse hover event #489

Answered by highfestiva
simsam8 asked this question in Q&A
Discussion options

You must be logged in to vote

Use partial. Like so:

fplt.set_mouse_callback(partial(my_callback, ax), ax=ax)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@simsam8
Comment options

Answer selected by simsam8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants