Return this Axis' minor tick locations in data coordinates.
(self)
| 1673 | return self.major.locator() |
| 1674 | |
| 1675 | def get_minorticklocs(self): |
| 1676 | """Return this Axis' minor tick locations in data coordinates.""" |
| 1677 | # Remove minor ticks duplicating major ticks. |
| 1678 | minor_locs = np.asarray(self.minor.locator()) |
| 1679 | if self.remove_overlapping_locs: |
| 1680 | major_locs = self.major.locator() |
| 1681 | transform = self._scale.get_transform() |
| 1682 | tr_minor_locs = transform.transform(minor_locs) |
| 1683 | tr_major_locs = transform.transform(major_locs) |
| 1684 | lo, hi = sorted(transform.transform(self.get_view_interval())) |
| 1685 | # Use the transformed view limits as scale. 1e-5 is the default |
| 1686 | # rtol for np.isclose. |
| 1687 | tol = (hi - lo) * 1e-5 |
| 1688 | mask = np.isclose(tr_minor_locs[:, None], tr_major_locs[None, :], |
| 1689 | atol=tol, rtol=0).any(axis=1) |
| 1690 | minor_locs = minor_locs[~mask] |
| 1691 | return minor_locs |
| 1692 | |
| 1693 | def get_ticklocs(self, *, minor=False): |
| 1694 | """ |