Return an array of this Axis' tick directions. Parameters ---------- minor : bool, default: False True to return the minor tick directions, False to return the major tick directions. Returns ------- array of tick dire
(self, minor=False)
| 1710 | return self.get_minorticklocs() if minor else self.get_majorticklocs() |
| 1711 | |
| 1712 | def get_ticks_direction(self, minor=False): |
| 1713 | """ |
| 1714 | Return an array of this Axis' tick directions. |
| 1715 | |
| 1716 | Parameters |
| 1717 | ---------- |
| 1718 | minor : bool, default: False |
| 1719 | True to return the minor tick directions, |
| 1720 | False to return the major tick directions. |
| 1721 | |
| 1722 | Returns |
| 1723 | ------- |
| 1724 | array of tick directions |
| 1725 | """ |
| 1726 | if minor: |
| 1727 | return np.array( |
| 1728 | [tick._tickdir for tick in self.get_minor_ticks()]) |
| 1729 | else: |
| 1730 | return np.array( |
| 1731 | [tick._tickdir for tick in self.get_major_ticks()]) |
| 1732 | |
| 1733 | def _get_tick(self, major): |
| 1734 | """Return the default tick instance.""" |
nothing calls this directly
no test coverage detected