Selection handlers are called in case of two plot instances
See original GitHub issueI’ve encountered a very awkward behavior of the component: there are two separate regl-scatterplot instances, both have their own selection handlers.
Both selection handlers are called when lasso tool is used, but when single point selected without holding Shift
button, then it works properly - only one selection handler is called. Seems like a bug in lasso implementation that share the state between instances. Probably this is due to global pub-sub
implementation?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
Chapter 4. Visualization with Matplotlib - O'Reilly
Matplotlib is a multiplatform data visualization library built on NumPy arrays, … - Selection from Python Data Science Handbook [Book]
Read more >Legend guide — Matplotlib 3.6.2 documentation
Calling legend() with no arguments automatically fetches the legend handles and their associated labels. This functionality is equivalent to:.
Read more >Group by: split-apply-combine — pandas 1.5.2 documentation
A Python function, to be called on each of the axis labels. A list or NumPy array of the same length as the...
Read more >RequestHandlers and SearchComponents in SolrConfig
By default, /select is a request handler that handles query requests. Request handlers can also process requests for nested paths of their names,...
Read more >Lesson 6: Investigating an Outbreak - CDC
An outbreak or an epidemic is the occurrence of more cases of disease than ... Investigators then abstract selected critical items onto a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for finding and reporting this!
In theory, the two pubSub instances should be separate: https://github.com/flekschas/regl-scatterplot/blob/master/src/index.js#L79 I am not using the global pubSub instance. It could be a bug in the pubSub instance though.
I’ll investigate.
Thanks for battle-testing! 😃