Extract subset of data from scatter plot

I have a scatter plot of 1000+ data points.
I'm looking for options to extract a small subset
of data points that cluster together on the plot. While the hover tool lets us look at individual data points, is there a way to select an area on the plot and extract all data points within it?

Thank you!!
Priya

Hi,

There's nothing build into Bokeh to do this, but you could potentially create a tool yourself in a couple of different ways:

* with callbacks on the new UI events:

  bokeh.events — Bokeh 3.3.2 Documentation
  https://github.com/bokeh/bokeh/blob/master/examples/howto/js_events.py
  https://github.com/bokeh/bokeh/blob/master/examples/howto/events_app.py

* by creating a custom extension:

  http://bokeh.pydata.org/en/latest/docs/user_guide/extensions.html

Thanks,

Bryan

···

On Jul 25, 2017, at 02:54, [email protected] wrote:

I have a scatter plot of 1000+ data points.
I'm looking for options to extract a small subset
of data points that cluster together on the plot. While the hover tool lets us look at individual data points, is there a way to select an area on the plot and extract all data points within it?

Thank you!!
Priya

--
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/8bf8a273-f98d-4310-8abb-1fc8664d9214%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.