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

Method _apply_tickdir

lib/matplotlib/axis.py:225–233  ·  view source on GitHub ↗

Set tick direction. Valid values are 'out', 'in', 'inout'.

(self, tickdir)

Source from the content-addressed store, hash-verified

223 return self._base_pad + self.get_tick_padding()
224
225 def _apply_tickdir(self, tickdir):
226 """Set tick direction. Valid values are 'out', 'in', 'inout'."""
227 # This method is responsible for verifying input and, in subclasses, for setting
228 # the tick{1,2}line markers. From the user perspective this should always be
229 # called through _apply_params, which further updates ticklabel positions using
230 # the new pads.
231 tickdir = mpl._val_or_rc(tickdir, f'{self.__name__}.direction')
232 _api.check_in_list(['in', 'out', 'inout'], tickdir=tickdir)
233 self._tickdir = tickdir
234
235 def get_tickdir(self):
236 return self._tickdir

Callers 4

__init__Method · 0.95
_apply_paramsMethod · 0.95
_apply_tickdirMethod · 0.45
_apply_tickdirMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected