Return the locations of the ticks. .. note:: Because the values are fixed, *vmin* and *vmax* are not used.
(self, vmin, vmax)
| 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 | |
| 1883 | class NullLocator(Locator): |
no test coverage detected