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

Method _copy_tick_props

lib/matplotlib/axis.py:1754–1770  ·  view source on GitHub ↗

Copy the properties from *src* tick to *dest* tick.

(self, src, dest)

Source from the content-addressed store, hash-verified

1752 return mtext.FontProperties(size=size).get_size_in_points()
1753
1754 def _copy_tick_props(self, src, dest):
1755 """Copy the properties from *src* tick to *dest* tick."""
1756 if src is None or dest is None:
1757 return
1758 dest.label1.update_from(src.label1)
1759 dest.label2.update_from(src.label2)
1760 dest.tick1line.update_from(src.tick1line)
1761 dest.tick2line.update_from(src.tick2line)
1762 dest.gridline.update_from(src.gridline)
1763 dest.update_from(src)
1764 dest._loc = src._loc
1765 dest._size = src._size
1766 dest._width = src._width
1767 dest._base_pad = src._base_pad
1768 dest._labelrotation = src._labelrotation
1769 dest._zorder = src._zorder
1770 dest._tickdir = src._tickdir
1771
1772 def get_label_text(self):
1773 """Get the text of the label."""

Callers 2

get_major_ticksMethod · 0.95
get_minor_ticksMethod · 0.95

Calls 1

update_fromMethod · 0.45

Tested by

no test coverage detected