matplotlib.ticker:748: # ORIGINAL: # step = max(int(0.99 + len(self.locs) / float(self.nbins)), 1) step = int(math.ceil(len(self.locs) / (self.nbins + 1)))
There is a from __future__ import division statement. Who verifies (or falsifies)? I checked with values len(locs) = 10, 11, 12, 100, 101, 110, 111, and nbins = 10, and it works (it didn't before) for me. I have a proof available. Friedrich ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users