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

Method _get_ticklabel_bboxes

lib/matplotlib/axis.py:1402–1409  ·  view source on GitHub ↗

Return lists of bboxes for ticks' label1's and label2's.

(self, ticks, renderer)

Source from the content-addressed store, hash-verified

1400 return ticks_to_draw
1401
1402 def _get_ticklabel_bboxes(self, ticks, renderer):
1403 """Return lists of bboxes for ticks' label1's and label2's."""
1404 return ([tick.label1.get_window_extent(renderer)
1405 for tick in ticks
1406 if tick.label1.get_visible() and tick.label1.get_in_layout()],
1407 [tick.label2.get_window_extent(renderer)
1408 for tick in ticks
1409 if tick.label2.get_visible() and tick.label2.get_in_layout()])
1410
1411 def get_tightbbox(self, renderer=None, *, for_layout_only=False):
1412 """

Callers 4

get_tightbboxMethod · 0.95
get_tightbboxMethod · 0.95
drawMethod · 0.95

Calls 3

get_in_layoutMethod · 0.80
get_window_extentMethod · 0.45
get_visibleMethod · 0.45

Tested by

no test coverage detected