How to set bin content in a hist2d (matplotlib)
Do you want to set the number of elements in each bin? I think that's a bar plot rather than a histogram. So simply use ax.bar instead.
EDIT Good point by tcaswell, for multidimensional images the equivalent is imshow rather than bar.
I am trying to plot values of z binned in (x,y). This would look like a hist2d in matplotlib but with the bin content being defined by another array instead of representing the number of counts. Is there any way to set the bin content in hist2d?