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

Method tick_values

lib/matplotlib/ticker.py:1864–1880  ·  view source on GitHub ↗

Return the locations of the ticks. .. note:: Because the values are fixed, *vmin* and *vmax* are not used.

(self, vmin, vmax)

Source from the content-addressed store, hash-verified

1862 return self.tick_values(None, None)
1863
1864 def tick_values(self, vmin, vmax):
1865 """
1866 Return the locations of the ticks.
1867
1868 .. note::
1869
1870 Because the values are fixed, *vmin* and *vmax* are not used.
1871 """
1872 if self.nbins is None:
1873 return self.locs
1874 step = max(int(np.ceil(len(self.locs) / self.nbins)), 1)
1875 ticks = self.locs[::step]
1876 for i in range(1, step):
1877 ticks1 = self.locs[i::step]
1878 if np.abs(ticks1).min() < np.abs(ticks).min():
1879 ticks = ticks1
1880 return self.raise_if_exceeds(ticks)
1881
1882
1883class NullLocator(Locator):

Callers 1

__call__Method · 0.95

Calls 2

minMethod · 0.80
raise_if_exceedsMethod · 0.80

Tested by

no test coverage detected