Set the locator of the major ticker. Parameters ---------- locator : `~matplotlib.ticker.Locator`
(self, locator)
| 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 | """ |
no test coverage detected