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

Method get_majorticklines

lib/matplotlib/axis.py:1614–1632  ·  view source on GitHub ↗

Return this Axis' major 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

1612 return self.get_majorticklabels()
1613
1614 def get_majorticklines(self):
1615 """
1616 Return this Axis' major tick lines as a list of `.Line2D`.
1617
1618 .. warning::
1619
1620 Ticks and their constituent parts, including tick lines, are not
1621 persistent. Various operations can create, delete, and modify the tick
1622 instances; see :ref:`axes-tick-objects`.
1623
1624 You should generally use `.Axis.set_tick_params` / `.Axis.get_tick_params`
1625 to define and query tick styling; see :ref:`axes-ticks-styling`.
1626 """
1627 lines = []
1628 ticks = self.get_major_ticks()
1629 for tick in ticks:
1630 lines.append(tick.tick1line)
1631 lines.append(tick.tick2line)
1632 return cbook.silent_list('Line2D ticklines', lines)
1633
1634 def get_minorticklines(self):
1635 """

Callers 1

get_ticklinesMethod · 0.95

Calls 1

get_major_ticksMethod · 0.95

Tested by

no test coverage detected