python's matplotlib hexbin: why are some hexbins in a column always shifted or offset slightly?
<p>Im using matplotlib.pyplot.hexbin() but have found something weird in the alignment of the hexagons. 
See picture below which results from the following code:</p>

<pre><code>x = np.concatenate([[20]*50, [1,2,3,4,5]])
y = np.concatenate([range(50), [1,2,3,4,5]])

plt.figure(figsize=[10,20])
plt.hexbin(x, y, gridsize=(20,50),cmap=plt.cm.YlOrRd)
plt.axis([-1, 21, -1, 51])
cb = plt.colorbar()
</code></pre>

<p><a href="https://i.stack.imgur.com/rfIH1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rfIH1.png" alt="Values from about 15-35 shifted to the left of the rest of the column of bins"></a></p>

<p>Can someone explain to me why this is happening and if it can be fixed so all coordinates with the same x-value are aligned and not shifted like this? It is very important to what I'm plotting. </p>