MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / ge

Method ge

lib/matplotlib/ticker.py:2103–2108  ·  view source on GitHub ↗

Return the smallest n: n*step >= x.

(self, x)

Source from the content-addressed store, hash-verified

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
2111class MaxNLocator(Locator):

Callers 4

_create_rruleMethod · 0.80
tick_valuesMethod · 0.80
view_limitsMethod · 0.80
_raw_ticksMethod · 0.80

Calls 1

closetoMethod · 0.95

Tested by

no test coverage detected