swap axis of a 2D histogram

swap axis of a 2D histogram