Possible bug with Box & Lasso select

Possible bug? Box/Lasso select on Scatter chart doesn’t only select the circles that I box/lasso in, but also other circles on my Scatter chart.

I put together a screen cast describing what’s going on: https://www.dropbox.com/s/rmtpjq47uknzx2l/bokeh-scatter-chart-issue.mov?dl=0

In fact you just selected what you selected, and you’ll only get points within your selection if you try to retrieve the data inside the selection.

It’s just that when you select a region where a group of scatter points have 0 points, the color of those points won’t change, but they are not “selected”.

You can still safely use the
cb_obj.get(‘selected’)[‘1d’].indices

``

in a callback to get your selected data.

It’s visually inconvenient though

Guessing it's this known issue:

  https://github.com/bokeh/bokeh/issues/2136

Bryan

···

On Jan 12, 2017, at 7:20 PM, [email protected] wrote:

In fact you just selected what you selected, and you'll only get points within your selection if you try to retrieve the data inside the selection.

It's just that when you select a region where a group of scatter points have 0 points, the color of those points won't change, but they are not "selected".

You can still safely use the
cb_obj.get('selected')['1d'].indices
in a callback to get your selected data.

It's visually inconvenient though

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/dd198d1e-9319-434b-9d11-56245fd13fca%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.