fixed histogram orientation by switching all histograms to mgrid