fix histograms for negative y-coordinates