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

Method tick_values

lib/matplotlib/ticker.py:2024–2033  ·  view source on GitHub ↗
(self, vmin, vmax)

Source from the content-addressed store, hash-verified

2022 return self.tick_values(vmin, vmax)
2023
2024 def tick_values(self, vmin, vmax):
2025 if vmax < vmin:
2026 vmin, vmax = vmax, vmin
2027 step = self._edge.step
2028 vmin -= self._offset
2029 vmax -= self._offset
2030 vmin = self._edge.ge(vmin) * step
2031 n = (vmax - vmin + 0.001 * step) // step
2032 locs = vmin - step + np.arange(n + 3) * step + self._offset
2033 return self.raise_if_exceeds(locs)
2034
2035 def view_limits(self, dmin, dmax):
2036 """

Callers 3

__call__Method · 0.95
test_basicMethod · 0.95

Calls 2

geMethod · 0.80
raise_if_exceedsMethod · 0.80

Tested by 2

test_basicMethod · 0.76