☰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

Alliasing effect on hexbin

Community Support
collins
collins

How to avoid “aliasing” effect (or water effect ) with Hexbin ?
I have to play all the time with the size of the bin to avoid this effect.
Maybe a way to apply a low-pass filter ?
bokeh_plot(1)
bokeh_plot

The good one with a “good” 2Dbin : bokeh_plot(2)

⌁   Link to post
p-himik
p-himik

Cannot answer the question, but I’m curious - why even use hexbin when separate bins are visible only as dots? Or is the plot zoomable enough so that separate bins actually become visible?

⌁   Link to post
Bryan
Bryan

There’s probably not much that can be done with hexes that small. It’s not really the usage that was in mind, and Bokeh is not really the appropriate place for transformations at the rasterization level. You might want to look in to using Datashader for the binning/aggregation, and then displaying results with Bokeh.

⌁   Link to post
collins
collins

Just to give a final answer for my case. I did several tests with datashader/holoviews but it doesn’t fit to my application. It adds one more level between me and bokeh figure and i lose the control of so many things. So i keep Hexbin and just hope one day s.o. add “rastering” on it :slight_smile:
I tried output_backend=‘webgl’ it works fine but "dashing for some figure.line doesn’t work, i don’t know why
I tried output_backend=‘svg’ it doesn’t work for hexbin cause i have to many datas.

⌁   Link to post

End of archived discussion · Replies are disabled