☰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

Feature to reduce/prevent collisions?

Community Support
Alexandre_Daly
Alexandre_Daly

Hello!
I have a simple scatter/barplot overlay and was wondering if there was a way (other than just upping the jitter area) to minimize the rate of collisions of the dots? In case it’s not clear the x value is categorical while the y value is not.
Code snippet:

pnew.scatter(x=jitter('Location_alone', 0.1), y='Weight', color='black',
            source=source_2,alpha=.6, marker='circle', size=9)
pnew.vbar(x='Location_alone', top='for_vbar', alpha=0.3, width=0.131, 
          source=source_3, color='Color')

⌁   Link to post
Bryan
Bryan

Assuming the y-values are significant and cannot also be jittered (seems to be the case here) then AFAICT the only way to reduce collisions is to make horizontal more room for the dots to occupy. (That’s just true in general, independent of Bokeh)

⌁   Link to post

End of archived discussion · Replies are disabled