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

Method get_minorticklabels

lib/matplotlib/axis.py:1555–1572  ·  view source on GitHub ↗

Return this Axis' minor tick labels, as a list of `~.text.Text`. .. warning:: Ticks and their constituent parts, including tick labels, are not persistent. Various operations can create, delete, and modify the tick instances; see :ref:`axes-tick

(self)

Source from the content-addressed store, hash-verified

1553 return labels1 + labels2
1554
1555 def get_minorticklabels(self):
1556 """
1557 Return this Axis' minor tick labels, as a list of `~.text.Text`.
1558
1559 .. warning::
1560
1561 Ticks and their constituent parts, including tick labels, are not
1562 persistent. Various operations can create, delete, and modify the tick
1563 instances; see :ref:`axes-tick-objects`.
1564
1565 You should generally use `.Axis.set_tick_params` / `.Axis.get_tick_params`
1566 to define and query tick styling; see :ref:`axes-ticks-styling`.
1567 """
1568 self._update_ticks()
1569 ticks = self.get_minor_ticks()
1570 labels1 = [tick.label1 for tick in ticks if tick.label1.get_visible()]
1571 labels2 = [tick.label2 for tick in ticks if tick.label2.get_visible()]
1572 return labels1 + labels2
1573
1574 def get_ticklabels(self, minor=False, which=None):
1575 """

Callers 2

get_ticklabelsMethod · 0.95
test_remove_overlapFunction · 0.80

Calls 3

_update_ticksMethod · 0.95
get_minor_ticksMethod · 0.95
get_visibleMethod · 0.45

Tested by 1

test_remove_overlapFunction · 0.64