[bokeh] Bokeh Mouse Interaction With Image Plotting

Hi Logan,

I was hoping that you could do this by getting the mouse x & y off a
TapTool callback, but I don't think you can.

A workaround is to plot invisible glyphs (square markers, circles,
whatever) on the same plot and attach a TapTool to them, then when you
tap, you'll be able to get data from them and make whatever calls you
want to update the data.

Sincerely,

Sarah Bird

···

On 10/25/15 7:53 PM, [email protected] wrote:

I am working in a research group in which we are trying to create a data
visualization tool which uses image plots. To make the tool more helpful
it would be great to be able to get the mouse position on the image
after the user clicks on it and send that information to the Bokeh
server so it can update the data with relevant information, is there any
way to do this?
Thank you for the help!

--
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/a/continuum.io/d/msgid/bokeh/ac1137c9-f3a0-4c3b-84d6-fb6413e154d9%40continuum.io
<https://groups.google.com/a/continuum.io/d/msgid/bokeh/ac1137c9-f3a0-4c3b-84d6-fb6413e154d9%40continuum.io?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Hi Sarah,

Thank you for the help, it worked!

Best,

Logan

···

On Mon, Oct 26, 2015 at 5:22 PM, Sarah Bird [email protected] wrote:

Hi Logan,

I was hoping that you could do this by getting the mouse x & y off a

TapTool callback, but I don’t think you can.

A workaround is to plot invisible glyphs (square markers, circles,

whatever) on the same plot and attach a TapTool to them, then when you

tap, you’ll be able to get data from them and make whatever calls you

want to update the data.

Sincerely,

Sarah Bird

On 10/25/15 7:53 PM, [email protected] wrote:

I am working in a research group in which we are trying to create a data

visualization tool which uses image plots. To make the tool more helpful

it would be great to be able to get the mouse position on the image

after the user clicks on it and send that information to the Bokeh

server so it can update the data with relevant information, is there any

way to do this?

Thank you for the help!

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]

mailto:[email protected].

To post to this group, send email to [email protected]

mailto:[email protected].

To view this discussion on the web visit

https://groups.google.com/a/continuum.io/d/msgid/bokeh/ac1137c9-f3a0-4c3b-84d6-fb6413e154d9%40continuum.io

<https://groups.google.com/a/continuum.io/d/msgid/bokeh/ac1137c9-f3a0-4c3b-84d6-fb6413e154d9%40continuum.io?utm_medium=email&utm_source=footer>.

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

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/562E9994.3010005%40gmail.com.

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

Great - let us know if u ever have a public example up!

···

On 10/28/15 9:12 PM, Logan Abel wrote:

TapTool to them, then when you
tap, you'll be able to get data from them and make whatever calls you
want to update the data.

Sincerely,