Rectangular bins iso hexbins


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?

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).

I will look into that. Thanks @Bryan