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

Method _get_tick

lib/matplotlib/axis.py:1733–1740  ·  view source on GitHub ↗

Return the default tick instance.

(self, major)

Source from the content-addressed store, hash-verified

1731 [tick._tickdir for tick in self.get_major_ticks()])
1732
1733 def _get_tick(self, major):
1734 """Return the default tick instance."""
1735 if self._tick_class is None:
1736 raise NotImplementedError(
1737 f"The Axis subclass {self.__class__.__name__} must define "
1738 "_tick_class or reimplement _get_tick()")
1739 tick_kw = self._major_tick_kw if major else self._minor_tick_kw
1740 return self._tick_class(self.axes, 0, major=major, **tick_kw)
1741
1742 def _get_tick_label_size(self, axis_name):
1743 """

Callers 3

get_major_ticksMethod · 0.95
get_minor_ticksMethod · 0.95
__get__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected