question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selection handlers are called in case of two plot instances

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
flekschascommented, Jun 3, 2020

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.

0reactions
flekschascommented, Jun 3, 2020

Thanks for battle-testing! 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found