very nice work, but I see the same problem as J. Dimensions seem to be switched. Some non random data I have. Doing a scatterplot clearly indicates the highest data density in the upper left, using histcn clearly gives the same distribution, yet the highest counts are in the lower right. Yes, set everything to axis xy.
It must be something simple, a hint please :)