#55 fixes axis range bug for integer values

closed
nobody
None
5
2014-02-04
2009-08-06
Anonymous
No

in /pyx/graph/axis/axis.py:163
if divisor, min and max are integer values and divisor is bigger than max - min the range becomes 0

Patch 2833369 is wrong here is the right one:

163,166c163
< _min = 0; _max = 0;
< if data.min != 0: _min = data.min/float(self.divisor)
< if data.max != 0: _max = data.max/float(self.divisor)
< partfunctions = parter.partfunctions(_min, _max,


        partfunctions = parter.partfunctions(data.min/self.divisor, data.max/self.divisor,

Discussion

  • Andre Wobst
    Andre Wobst
    2011-05-15

    We have most probably solved this in the solution to patch #2833369.