☰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

[bokeh] Bokeh Mouse Interaction With Image Plotting

Community Support
Sarah_Bird1
Sarah_Bird1

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, loganbabel@gmail.com 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 bokeh+unsubscribe@continuum.io
<mailto:bokeh+unsubscribe@continuum.io>.
To post to this group, send email to bokeh@continuum.io
<mailto:bokeh@continuum.io>.
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&gt;\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post
Logan_Abel
Logan_Abel

Hi Sarah,

Thank you for the help, it worked!

Best,

Logan

···

On Mon, Oct 26, 2015 at 5:22 PM, Sarah Bird sarah.birdman@gmail.com 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, loganbabel@gmail.com 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 bokeh+unsubscribe@continuum.io

mailto:bokeh+unsubscribe@continuum.io.

To post to this group, send email to bokeh@continuum.io

mailto:bokeh@continuum.io.

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

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

⌁   Link to post
Sarah_Bird1
Sarah_Bird1

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,

⌁   Link to post

End of archived discussion · Replies are disabled