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

Method get_minorticklines

lib/matplotlib/axis.py:1634–1652  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1632 return cbook.silent_list('Line2D ticklines', lines)
1633
1634 def get_minorticklines(self):
1635 """
1636 Return this Axis' minor tick lines as a list of `.Line2D`.
1637
1638 .. warning::
1639
1640 Ticks and their constituent parts, including tick lines, are not
1641 persistent. Various operations can create, delete, and modify the tick
1642 instances; see :ref:`axes-tick-objects`.
1643
1644 You should generally use `.Axis.set_tick_params` / `.Axis.get_tick_params`
1645 to define and query tick styling; see :ref:`axes-ticks-styling`.
1646 """
1647 lines = []
1648 ticks = self.get_minor_ticks()
1649 for tick in ticks:
1650 lines.append(tick.tick1line)
1651 lines.append(tick.tick2line)
1652 return cbook.silent_list('Line2D ticklines', lines)
1653
1654 def get_ticklines(self, minor=False):
1655 """

Callers 2

get_ticklinesMethod · 0.95
test_remove_overlapFunction · 0.80

Calls 1

get_minor_ticksMethod · 0.95

Tested by 1

test_remove_overlapFunction · 0.64