Barra colorida com hist2d

h = plt.hist2d(x, y, bins=40, norm=LogNorm())
plt.colorbar(h[3])
Yucky Yak