Getting LassoSelectTool coordinates on an ImageRGBA glyph

I would like to allow a user to select a region of interest on an image. Is there any way to get the coordinates of the polygon drawn using the LassoSelectTool on an image? The BoxSelectTool can take a callback function as an argument, but the LassoSelectTool has no such functionality. I’ve attached an image of an error that occurs in the JS console when attempting to use the LassoSelectTool on an ImageRGBA glyph. I am using Bokeh 0.10.0. Any help is appreciated.

Maurice

I don't think this is currently possible. There are a couple of possible avenues. Can you make a feature request on GH so we can get a wider group of devs involved?

Thanks,

Bryan

···

On Oct 23, 2015, at 10:37 AM, Maurice Marx <[email protected]> wrote:

I would like to allow a user to select a region of interest on an image. Is there any way to get the coordinates of the polygon drawn using the LassoSelectTool on an image? The BoxSelectTool can take a callback function as an argument, but the LassoSelectTool has no such functionality. I've attached an image of an error that occurs in the JS console when attempting to use the LassoSelectTool on an ImageRGBA glyph. I am using Bokeh 0.10.0. Any help is appreciated.

Maurice

--
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]ontinuum.io.
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/d761c86d-0ec0-4f65-80e1-435e042ad93d%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<BokehJS_Error.png>

Hi Bryan,

Yes, will do. Thanks for your reply.

Maurice

···

On Saturday, October 24, 2015 at 10:50:19 PM UTC-4, Bryan Van de ven wrote:

I don’t think this is currently possible. There are a couple of possible avenues. Can you make a feature request on GH so we can get a wider group of devs involved?

Thanks,

Bryan

On Oct 23, 2015, at 10:37 AM, Maurice Marx [email protected] wrote:

I would like to allow a user to select a region of interest on an image. Is there any way to get the coordinates of the polygon drawn using the LassoSelectTool on an image? The BoxSelectTool can take a callback function as an argument, but the LassoSelectTool has no such functionality. I’ve attached an image of an error that occurs in the JS console when attempting to use the LassoSelectTool on an ImageRGBA glyph. I am using Bokeh 0.10.0. Any help is appreciated.

Maurice


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/d761c86d-0ec0-4f65-80e1-435e042ad93d%40continuum.io.

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

<BokehJS_Error.png>