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

Method get_ticklines

lib/matplotlib/axis.py:1654–1669  ·  view source on GitHub ↗

Return this Axis' 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-objects`.

(self, minor=False)

Source from the content-addressed store, hash-verified

1652 return cbook.silent_list('Line2D ticklines', lines)
1653
1654 def get_ticklines(self, minor=False):
1655 """
1656 Return this Axis' tick lines as a list of `.Line2D`.
1657
1658 .. warning::
1659
1660 Ticks and their constituent parts, including tick lines, are not
1661 persistent. Various operations can create, delete, and modify the tick
1662 instances; see :ref:`axes-tick-objects`.
1663
1664 You should generally use `.Axis.set_tick_params` / `.Axis.get_tick_params`
1665 to define and query tick styling; see :ref:`axes-ticks-styling`.
1666 """
1667 if minor:
1668 return self.get_minorticklines()
1669 return self.get_majorticklines()
1670
1671 def get_majorticklocs(self):
1672 """Return this Axis' major tick locations in data coordinates."""

Callers 2

thetagridsFunction · 0.80
set_thetagridsMethod · 0.80

Calls 2

get_minorticklinesMethod · 0.95
get_majorticklinesMethod · 0.95

Tested by

no test coverage detected