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

Method tick_values

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

Source from the content-addressed store, hash-verified

2299 return self.tick_values(vmin, vmax)
2300
2301 def tick_values(self, vmin, vmax):
2302 if self._symmetric:
2303 vmax = max(abs(vmin), abs(vmax))
2304 vmin = -vmax
2305 vmin, vmax = mtransforms._nonsingular(
2306 vmin, vmax, expander=1e-13, tiny=1e-14)
2307 locs = self._raw_ticks(vmin, vmax)
2308
2309 prune = self._prune
2310 if prune == 'lower':
2311 locs = locs[1:]
2312 elif prune == 'upper':
2313 locs = locs[:-1]
2314 elif prune == 'both':
2315 locs = locs[1:-1]
2316 return self.raise_if_exceeds(locs)
2317
2318 def view_limits(self, dmin, dmax):
2319 if self._symmetric:

Callers 5

__call__Method · 0.95
legend_elementsMethod · 0.95
test_basicMethod · 0.95
test_integerMethod · 0.95
test_maxn_majorMethod · 0.95

Calls 2

_raw_ticksMethod · 0.95
raise_if_exceedsMethod · 0.80

Tested by 3

test_basicMethod · 0.76
test_integerMethod · 0.76
test_maxn_majorMethod · 0.76