[MRG] don't allow user to specify negative number of bins