Return the smallest n: n*step >= x.
(self, x)
| 2101 | return d |
| 2102 | |
| 2103 | def ge(self, x): |
| 2104 | """Return the smallest n: n*step >= x.""" |
| 2105 | d, m = divmod(x, self.step) |
| 2106 | if self.closeto(m / self.step, 0): |
| 2107 | return d |
| 2108 | return d + 1 |
| 2109 | |
| 2110 | |
| 2111 | class MaxNLocator(Locator): |
no test coverage detected