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

Method get_ticks_direction

lib/matplotlib/axis.py:1712–1731  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

get_minor_ticksMethod · 0.95
get_major_ticksMethod · 0.95

Tested by

no test coverage detected