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

Method _get_tick_label_size

lib/matplotlib/axis.py:1742–1752  ·  view source on GitHub ↗

Return the text size of tick labels for this Axis. This is a convenience function to avoid having to create a `Tick` in `.get_tick_space`, since it is expensive.

(self, axis_name)

Source from the content-addressed store, hash-verified

1740 return self._tick_class(self.axes, 0, major=major, **tick_kw)
1741
1742 def _get_tick_label_size(self, axis_name):
1743 """
1744 Return the text size of tick labels for this Axis.
1745
1746 This is a convenience function to avoid having to create a `Tick` in
1747 `.get_tick_space`, since it is expensive.
1748 """
1749 tick_kw = self._major_tick_kw
1750 size = tick_kw.get('labelsize',
1751 mpl.rcParams[f'{axis_name}tick.labelsize'])
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."""

Callers 3

get_tick_spaceMethod · 0.80
get_tick_spaceMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1