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

Method set_default_locators_and_formatters

lib/matplotlib/scale.py:415–422  ·  view source on GitHub ↗
(self, axis)

Source from the content-addressed store, hash-verified

413 base = property(lambda self: self._transform.base)
414
415 def set_default_locators_and_formatters(self, axis):
416 # docstring inherited
417 axis.set_major_locator(LogLocator(self.base))
418 axis.set_major_formatter(LogFormatterSciNotation(self.base))
419 axis.set_minor_locator(LogLocator(self.base, self.subs))
420 axis.set_minor_formatter(
421 LogFormatterSciNotation(self.base,
422 labelOnlyBase=(self.subs is not None)))
423
424 def get_transform(self):
425 """Return the `.LogTransform` associated with this scale."""

Callers 1

_set_scaleMethod · 0.45

Calls 6

LogLocatorClass · 0.90
set_minor_locatorMethod · 0.80
set_minor_formatterMethod · 0.80
set_major_locatorMethod · 0.45
set_major_formatterMethod · 0.45

Tested by

no test coverage detected