☰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

Rectangular bins iso hexbins

Community Support
ReinV
ReinV

Hello,

I was wondering if there is an easy option to get the hexbin plot (with the counts and the color scaling) but with rectangular bins. In some cases, rectangular bins are preffered and I would like to have this option in my script, but I don’t see an easy solution at this moment. Any ideas?

⌁   Link to post
Bryan
Bryan

Hi @ReinV there is nothing built in, you would need to do a spatial aggregation yourself. A simple approach is to divide each point by the grid spacing in each direction to get the (i,j) coordinate of the rect for that point (which is also used to index counters for the aggregating).

⌁   Link to post

End of archived discussion · Replies are disabled