Skip to content
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

Bug: multiselect dots in plotly plot caused an error #60

Open
hanhou opened this issue Apr 9, 2024 · 1 comment
Open

Bug: multiselect dots in plotly plot caused an error #60

hanhou opened this issue Apr 9, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@hanhou
Copy link
Collaborator

hanhou commented Apr 9, 2024

Multi-select dots in plotly plot caused this error:

image

link

@hanhou hanhou added the bug Something isn't working label Apr 9, 2024
@hanhou hanhou changed the title Bug: multiselect Bug: multiselect dots in plotly plot caused an error Apr 9, 2024
@hanhou hanhou self-assigned this Apr 9, 2024
@hanhou
Copy link
Collaborator Author

hanhou commented Apr 9, 2024

It should have something to do with the way I retrieve selected dots from plotly figure. I was using (x, y) coordinates. This is problematic when multiple dots have the same (x, y). Two ways to solve this:

  1. add a very small random jitter to (x, y), like I did in ephys unit selector.
  2. (better) use curveNumber and pointNumber, like I did in AutoTrain manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant