Histogram Brushing

Hello,

I’m wondering if someone can give me an example on how to setup some sort of brushing on a histogram. I created one based off an example on the Bokeh git however, I’m unsure how to enable brushing so that I can brush a histogram and have it be linked with a scatter. I’m aware of brushing the scatter and connecting it to the histogram, but I’m unsure of how to do it the other way around.

Thanks!

Hi,

It looks like only Rect currently supports hit testing against boxes, if selections with a BoxSelectTool are what you are after. Quad, VBar, and HBar can only currently hit test against points and spans, not boxes. So, implement your histogram using rects is the short answer. Then handling selections is exactly the same as with any other glyph, it is stored on and can be accessed from the ColumnDataSource.

Thanks,

Bryan

···

On Sep 28, 2017, at 17:04, Allan <[email protected]> wrote:

Hello,

I'm wondering if someone can give me an example on how to setup some sort of brushing on a histogram. I created one based off an example on the Bokeh git however, I'm unsure how to enable brushing so that I can brush a histogram and have it be linked with a scatter. I'm aware of brushing the scatter and connecting it to the histogram, but I'm unsure of how to do it the other way around.

Thanks!

--
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/1078404d-200f-45c2-9c3c-397a1b02dfd1%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.