Skip to content

Create events type and update plt.connect and mpl_connect #30275

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

Merged
merged 3 commits into from
Jul 10, 2025

Conversation

ZPyrolink
Copy link
Contributor

PR summary

This PR update the mpl_connect function and his corresponding pyplot wrapper.

  • Create literals for each event:
    • MouseEventType
    • KeyEventType
    • DrawEventType
    • PickEventType
    • ResizeEventType
    • CloseEventType
  • Create literal for all events: EventType
  • Update mpl_connect and plt.connect with these new types
  • Create mpl_connect overload for DrawEvent

PR checklist

Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@QuLogic QuLogic added this to the v3.11.0 milestone Jul 10, 2025
@QuLogic QuLogic merged commit 4284a0b into matplotlib:main Jul 10, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants