enforce a nonzero binwidth in histogram