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

Method get_minor_ticks

lib/matplotlib/axis.py:1818–1842  ·  view source on GitHub ↗

r""" Return the list of minor `.Tick`\s. .. warning:: Ticks are not guaranteed to be persistent. Various operations can create, delete and modify the Tick instances. There is an imminent risk that changes to individual ticks will not

(self, numticks=None)

Source from the content-addressed store, hash-verified

1816 return self.majorTicks[:numticks]
1817
1818 def get_minor_ticks(self, numticks=None):
1819 r"""
1820 Return the list of minor `.Tick`\s.
1821
1822 .. warning::
1823
1824 Ticks are not guaranteed to be persistent. Various operations
1825 can create, delete and modify the Tick instances. There is an
1826 imminent risk that changes to individual ticks will not
1827 survive if you work on the figure further (including also
1828 panning/zooming on a displayed figure).
1829
1830 Working on the individual ticks is a method of last resort.
1831 Use `.set_tick_params` instead if possible.
1832 """
1833 if numticks is None:
1834 numticks = len(self.get_minorticklocs())
1835
1836 while len(self.minorTicks) < numticks:
1837 # Update the new tick label properties from the old.
1838 tick = self._get_tick(major=False)
1839 self.minorTicks.append(tick)
1840 self._copy_tick_props(self.minorTicks[0], tick)
1841
1842 return self.minorTicks[:numticks]
1843
1844 def grid(self, visible=None, which='major', **kwargs):
1845 """

Callers 11

get_childrenMethod · 0.95
_update_ticksMethod · 0.95
get_minorticklabelsMethod · 0.95
get_minorticklinesMethod · 0.95
get_ticks_directionMethod · 0.95
set_ticklabelsMethod · 0.95
_set_tick_locationsMethod · 0.95
test_grid_rcparamsFunction · 0.45
minorticksubplotFunction · 0.45
minortickstoggleFunction · 0.45
test_remove_overlapFunction · 0.45

Calls 3

get_minorticklocsMethod · 0.95
_get_tickMethod · 0.95
_copy_tick_propsMethod · 0.95

Tested by 4

test_grid_rcparamsFunction · 0.36
minorticksubplotFunction · 0.36
minortickstoggleFunction · 0.36
test_remove_overlapFunction · 0.36