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

Method _copy_tick_props

lib/matplotlib/projections/polar.py:416–426  ·  view source on GitHub ↗

Copy the props from src tick to dest tick.

(self, src, dest)

Source from the content-addressed store, hash-verified

414 self._wrap_locator_formatter()
415
416 def _copy_tick_props(self, src, dest):
417 """Copy the props from src tick to dest tick."""
418 if src is None or dest is None:
419 return
420 super()._copy_tick_props(src, dest)
421
422 # Ensure that tick transforms are independent so that padding works.
423 trans = dest._get_text1_transform()[0]
424 dest.label1.set_transform(trans + dest._text1_translate)
425 trans = dest._get_text2_transform()[0]
426 dest.label2.set_transform(trans + dest._text2_translate)
427
428
429class RadialLocator(mticker.Locator):

Callers

nothing calls this directly

Calls 3

_get_text1_transformMethod · 0.45
set_transformMethod · 0.45
_get_text2_transformMethod · 0.45

Tested by

no test coverage detected