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

Method le

lib/matplotlib/ticker.py:2096–2101  ·  view source on GitHub ↗

Return the largest n: n*step <= x.

(self, x)

Source from the content-addressed store, hash-verified

2094 return abs(ms - edge) < tol
2095
2096 def le(self, x):
2097 """Return the largest n: n*step <= x."""
2098 d, m = divmod(x, self.step)
2099 if self.closeto(m / self.step, 1):
2100 return d + 1
2101 return d
2102
2103 def ge(self, x):
2104 """Return the smallest n: n*step >= x."""

Callers 3

_create_rruleMethod · 0.80
view_limitsMethod · 0.80
_raw_ticksMethod · 0.80

Calls 1

closetoMethod · 0.95

Tested by

no test coverage detected