generating "ticks" for binned values correctly