add callbacks to quad

Bokeh 0.12.2

is it possible to add python callbacks to quad?

stack = figure(width=480, height=self.height_scatter,y_axis_location=None,x_axis_label=‘Miles’, title=‘Longest Miles’)

q = stack.quad(top=‘top’, bottom=‘bottom’, left=0, right=‘right’, color=‘orange’, alpha=.8, source = self.quad_source)

``

When selecting a quad I would like to(for now) print information about the source of each quad using pythons print().

Selection callbacks happen on data sources, see this example for a comparable demonstration of responding to selections on circles:

  https://github.com/bokeh/bokeh/blob/master/examples/app/selection_histogram.py

Thanks,

Bryan

···

On Nov 2, 2016, at 1:03 PM, Rob Pritchard <[email protected]> wrote:

Bokeh 0.12.2

is it possible to add python callbacks to quad?

stack = figure(width=480, height=self.height_scatter,y_axis_location=None,x_axis_label='Miles', title='Longest Miles')

q = stack.quad(top='top', bottom='bottom', left=0, right='right', color='orange', alpha=.8, source = self.quad_source)

When selecting a quad I would like to(for now) print information about the source of each quad using pythons print().

--
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/017291c7-a607-4574-b9f5-25d17a2c5e5e%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thank you Bryan. That was exactly what I needed.

···

On Wednesday, November 2, 2016 at 1:06:51 PM UTC-5, Bryan Van de ven wrote:

Selection callbacks happen on data sources, see this example for a comparable demonstration of responding to selections on circles:

    [https://github.com/bokeh/bokeh/blob/master/examples/app/selection_histogram.py](https://github.com/bokeh/bokeh/blob/master/examples/app/selection_histogram.py)

Thanks,

Bryan

On Nov 2, 2016, at 1:03 PM, Rob Pritchard [email protected] wrote:

Bokeh 0.12.2

is it possible to add python callbacks to quad?

stack = figure(width=480, height=self.height_scatter,y_axis_location=None,x_axis_label=‘Miles’, title=‘Longest Miles’)

q = stack.quad(top=‘top’, bottom=‘bottom’, left=0, right=‘right’, color=‘orange’, alpha=.8, source = self.quad_source)

When selecting a quad I would like to(for now) print information about the source of each quad using pythons print().


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/017291c7-a607-4574-b9f5-25d17a2c5e5e%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.