@@ -653,19 +653,30 @@ def set_scientific(self, b):
653653 self ._scientific = bool (b )
654654
655655 def set_powerlimits (self , lims ):
656- """
657- Sets size thresholds for scientific notation.
656+ r """
657+ Set size thresholds for scientific notation.
658658
659659 Parameters
660660 ----------
661- lims : (min_exp, max_exp)
662- A tuple containing the powers of 10 that determine the switchover
663- threshold. Numbers below ``10**min_exp`` and above ``10**max_exp``
664- will be displayed in scientific notation.
665-
666- For example, ``formatter.set_powerlimits((-3, 4))`` sets the
667- pre-2007 default in which scientific notation is used for
668- numbers less than 1e-3 or greater than 1e4.
661+ lims : (int, int)
662+ A tuple *(min_exp, max_exp)* containing the powers of 10 that
663+ determine the switchover threshold. For a number representable as
664+ :math:`a \times 10^\mathrm{exp}`` with :math:`1 <= |a| < 10`,
665+ scientific notation will be used if ``exp <= min_exp`` or
666+ ``exp >= max_exp``.
667+
668+ The default limits are controlled by :rc:`axes.formatter.limits`.
669+
670+ In particular numbers with *exp* equal to the thresholds are
671+ written in scientific notation.
672+
673+ Typically, *min_exp* will be negative and *max_exp* will be
674+ positive.
675+
676+ For example, ``formatter.set_powerlimits((-3, 4))`` will provide
677+ the following formatting:
678+ :math:`1 \times 10^{-3}, 9.9 \times 10^{-3}, 0.01,`
679+ :math:`9999, 1 \times 10^4`.
669680
670681 See Also
671682 --------
0 commit comments