Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Bug summary
gridsize results in 2x the expected number of elements in y-direction
Code for reproduction
importmatplotlib.pyplotaspltimportnumpyasnpnp.random.seed(19680801)n=100000x=np.random.standard_normal(n)y=2.0+3.0*x+4.0*np.random.standard_normal(n)fig,ax=plt.subplots(figsize=(6,6))h=ax.hexbin(x,y,gridsize=(10,10),marginals=True,reduce_C_function=np.sum)
Actual outcome
Expected outcome
This image was taken withgridsize=(10, 5)
but should be the result ofgridsize=(10, 10)
.