# Consistent hexbin hex size

**URL:** <https://discourse.holoviz.org/t/consistent-hexbin-hex-size/1989>\
**Category:** hvPlot\
**Created:** [March 16, 2021, 3:28am UTC](https://discourse.holoviz.org/t/consistent-hexbin-hex-size/1989 "2021-03-16T03:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjennings](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@tjennings](https://discourse.holoviz.org/u/tjennings)\
**Post date:** [March 16, 2021, 3:28am UTC](https://discourse.holoviz.org/t/consistent-hexbin-hex-size/1989/1 "2021-03-16T03:28:35Z")

</div>

Hi,

I am trying to create a set of hexbin plots with multiple axes using `hvplot`. However, the maximum values are different for different plots. The result is that different plots have different size hexes. This makes direct comparison difficult. Is there a way to have a fixed hex size across all plots? The “gridsize” option doesn’t work, it makes them bigger or smaller but still inconsistent.

Here is an example:

```
import numpy as np
import hvplot.pandas
import xarray as xr

data = np.tri(3, 3, 1).T[..., None]*np.tri(3, 3, 1)
data[data==0] = np.NaN
da = xr.DataArray(data, dims=["X", "Y", "Z"])
da.to_dataframe(name='test').dropna().hvplot.hexbin(x="X", y="Y", row="Z", gridsize=10)

```

Attached is the result. Notice the hexes are squashed vertically in the third example. Leaving `gridsize` off still has the same problem, but it is less obvious due to their small size.

![test](https://discourse.holoviz.org/uploads/default/original/2X/b/b80830a1eab6bc9da983879b6832b9954c5af170.png)
