File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
New entries should be added at the top
2
2
3
- 2005-03-16 Fixed tick on horiz colorbar
3
+ 2005-03-16 Applied Darren's ticker fix for small ranges - JDH
4
+
5
+ 2005-03-16 Fixed tick on horiz colorbar - JDH
4
6
5
7
2005-03-16 Added Japanses winreg patch - JDH
6
8
Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ def lt(self, x):
501
501
def le (self , x ):
502
502
'return the largest multiple of base <= x'
503
503
d ,m = divmod (x , self ._base )
504
- if closeto (m , self ._base ):
504
+ if closeto (m / self . _base , 1 ): # was closeto(m, self._base)
505
505
#looks like floating point error
506
506
return (d + 1 )* self ._base
507
507
else :
@@ -516,14 +516,11 @@ def gt(self, x):
516
516
else :
517
517
return (d + 1 )* self ._base
518
518
519
-
520
-
521
519
def ge (self , x ):
522
520
'return the largest multiple of base >= x'
523
521
d ,m = divmod (x , self ._base )
524
- if m == 0 : return x
522
+ if closeto ( m , 0 ) and not closeto ( m / self . _base , 1 ) : return x
525
523
return (d + 1 )* self ._base
526
-
527
524
def get_base (self ):
528
525
return self ._base
529
526
You can’t perform that action at this time.
0 commit comments