☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Extract subset of data from scatter plot

Community Support
sripriya8988
sripriya8988

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

⌁   Link to post
Bryan
Bryan

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, sripriya8988@gmail.com 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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post

End of archived discussion · Replies are disabled