Skip to content

Fix lasso unresponsive issue by adding a lock release event #25155

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 4 commits into from
Feb 22, 2023

Conversation

devRD
Copy link
Contributor

@devRD devRD commented Feb 5, 2023

PR Summary

Fixes #25137 by adding a lock release event.

PR Checklist

Documentation and Tests

  • Has pytest style unit tests (and pytest passes)
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • New plotting related features are documented with examples.

Release Notes

  • New features are marked with a .. versionadded:: directive in the docstring and documented in doc/users/next_whats_new/
  • API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@jklymak
Copy link
Member

jklymak commented Feb 14, 2023

@ianhi maybe you are the wrong person to ask for a review here, but feel free to suggest someone else...

Copy link
Contributor

@ianhi ianhi left a comment

Choose a reason for hiding this comment

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

I'd approve this (conditional on my comment about checking for ownership of the lock) as this does indeed fix the reported bug. Nice fix @devRD!

That said I think that using Lasso is something that should be discouraged in favor of lasso selector - perhaps even deprecated and removed. See my comments in #19221 for more. Still this is clear improvement and the perfect should not be the enemy of the good.

@ianhi maybe you are the wrong person to ask for a review here,

I'm probably the right person :)

Co-authored-by: Ian Hunt-Isaak <ianhuntisaak@gmail.com>
@devRD
Copy link
Contributor Author

devRD commented Feb 16, 2023

@ianhi Thank you for the review! I added your suggested changes.

@ianhi
Copy link
Contributor

ianhi commented Feb 16, 2023

Awesome @devRD - i think that the process is now that at least one core dev (i.e. not me) needs to approve this (only one as this is documentation).

For whoever that is I think the things to check are:

  1. Run the example - click once, then see that you can still lasso as expected
  2. Run the example make lassos as expected

full file for copy paste purposes: https://github.com/matplotlib/matplotlib/blob/418c9e7037896bea4a4db5cce656f2933014f0e0/examples/event_handling/lasso_demo.py

@jklymak
Copy link
Member

jklymak commented Feb 16, 2023

@ianhi you have merge rights, if I'm not mistaken.

@ianhi
Copy link
Contributor

ianhi commented Feb 16, 2023

@ianhi you have merge rights, if I'm not mistaken.

I actually don't - I think I only have the power to open/close issues+PRs and apply labels. I have merging rights over on ipympl

@QuLogic QuLogic mentioned this pull request Feb 22, 2023
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@QuLogic QuLogic added this to the v3.7.1 milestone Feb 22, 2023
@QuLogic QuLogic merged commit 1163b30 into matplotlib:main Feb 22, 2023
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Feb 22, 2023
@QuLogic
Copy link
Member

QuLogic commented Feb 22, 2023

Thanks @devRD! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again.

ksunden added a commit that referenced this pull request Feb 23, 2023
…155-on-v3.7.x

Backport PR #25155 on branch v3.7.x (Fix lasso unresponsive issue by adding a lock release event)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

[Bug]: stop responding in demo program "matplotlib/examples/event_handling/lasso_demo.py"
6 participants