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

Method set_major_locator

lib/matplotlib/axis.py:2122–2136  ·  view source on GitHub ↗

Set the locator of the major ticker. Parameters ---------- locator : `~matplotlib.ticker.Locator`

(self, locator)

Source from the content-addressed store, hash-verified

2120 self.stale = True
2121
2122 def set_major_locator(self, locator):
2123 """
2124 Set the locator of the major ticker.
2125
2126 Parameters
2127 ----------
2128 locator : `~matplotlib.ticker.Locator`
2129 """
2130 _api.check_isinstance(mticker.Locator, locator=locator)
2131 self.isDefault_majloc = False
2132 self.major.locator = locator
2133 if self.major.formatter:
2134 self.major.formatter._set_locator(locator)
2135 locator.set_axis(self)
2136 self.stale = True
2137
2138 def set_minor_locator(self, locator):
2139 """

Callers 15

_update_axisinfoMethod · 0.95
_set_tick_locationsMethod · 0.95
locatorMethod · 0.45
update_ticksMethod · 0.45
set_ticksMethod · 0.45
colormaps.pyFile · 0.45
setupFunction · 0.45

Calls 2

_set_locatorMethod · 0.45
set_axisMethod · 0.45

Tested by

no test coverage detected