Changes to histogram calculation for scatter plots.