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

Method tick_values

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

Source from the content-addressed store, hash-verified

1947 return self.tick_values(vmin, vmax)
1948
1949 def tick_values(self, vmin, vmax):
1950 vmin, vmax = mtransforms._nonsingular(vmin, vmax, expander=0.05)
1951
1952 if (vmin, vmax) in self.presets:
1953 return self.presets[(vmin, vmax)]
1954
1955 if self.numticks == 0:
1956 return []
1957 ticklocs = np.linspace(vmin, vmax, self.numticks)
1958
1959 return self.raise_if_exceeds(ticklocs)
1960
1961 def view_limits(self, vmin, vmax):
1962 """Try to choose the view limits intelligently."""

Callers 4

__call__Method · 0.95
test_basicMethod · 0.95
test_zero_numticksMethod · 0.95
test_presetsMethod · 0.95

Calls 1

raise_if_exceedsMethod · 0.80

Tested by 3

test_basicMethod · 0.76
test_zero_numticksMethod · 0.76
test_presetsMethod · 0.76