@@ -1549,19 +1549,7 @@ def set_minor_formatter(self, formatter):
1549
1549
1550
1550
In addition to a `~matplotlib.ticker.Formatter` instance,
1551
1551
this also accepts a ``str`` or function.
1552
-
1553
- For a ``str`` a `~matplotlib.ticker.StrMethodFormatter` is used.
1554
- The field used for the value must be labeled ``'x'`` and the field used
1555
- for the position must be labeled ``'pos'``.
1556
- See the `~matplotlib.ticker.StrMethodFormatter` documentation for
1557
- more information.
1558
-
1559
- For a function a `~matplotlib.ticker.FuncFormatter` is used.
1560
- The function should take in two inputs (a tick value ``x`` and a
1561
- position ``pos``), and return a string containing the corresponding
1562
- tick label.
1563
- See the `~matplotlib.ticker.FuncFormatter` documentation for
1564
- more information.
1552
+ See `.Axis.set_major_formatter` for more information.
1565
1553
1566
1554
Parameters
1567
1555
----------
@@ -1570,30 +1558,6 @@ def set_minor_formatter(self, formatter):
1570
1558
self ._set_formatter (formatter , self .minor )
1571
1559
1572
1560
def _set_formatter (self , formatter , level ):
1573
- """
1574
- Set the formatter of the major or minor ticker.
1575
-
1576
- In addition to a `~matplotlib.ticker.Formatter` instance,
1577
- this also accepts a ``str`` or function.
1578
-
1579
- For a ``str`` a `~matplotlib.ticker.StrMethodFormatter` is used.
1580
- The field used for the value must be labeled ``'x'`` and the field used
1581
- for the position must be labeled ``'pos'``.
1582
- See the `~matplotlib.ticker.StrMethodFormatter` documentation for
1583
- more information.
1584
-
1585
- For a function a `~matplotlib.ticker.FuncFormatter` is used.
1586
- The function should take in two inputs (a tick value ``x`` and a
1587
- position ``pos``), and return a string containing the corresponding
1588
- tick label.
1589
- See the `~matplotlib.ticker.FuncFormatter` documentation for
1590
- more information.
1591
-
1592
- Parameters
1593
- ----------
1594
- formatter : `~matplotlib.ticker.Formatter`, ``str``, or function
1595
- level : `self.major` or `self.minor`
1596
- """
1597
1561
if isinstance (formatter , str ):
1598
1562
formatter = mticker .StrMethodFormatter (formatter )
1599
1563
# Don't allow any other TickHelper to avoid easy-to-make errors,
0 commit comments