☰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

Snap point to existing lines/points using PointDrawTool

Community Support
Mattia_Martinelli
Mattia_Martinelli

Good morning,
I do not know if this question has been already done.
I’m using the PointDrawTool to move and modify scatter plots.
Is it possible to snap the point that I want to move to already existing lines or points?

Thank you vey much

Mattia

⌁   Link to post
Bryan
Bryan

There is no built-in capability for this (no one has ever asked for it). I don’t think it’s completely trivial, but a custom extension is always a possibility. In this case I think you’d want to overide the _pan_end method on the tool to adjust the renderer data source data dict according to your requirements, before emitting the changes.

⌁   Link to post

End of archived discussion · Replies are disabled