114114FORMATTERS = { # note default LogFormatter uses ugly e+00 notation
115115 'auto' : pticker .AutoFormatter ,
116116 'frac' : pticker .FracFormatter ,
117+ 'sci' : pticker .SciFormatter ,
117118 'sigfig' : pticker .SigFigFormatter ,
118119 'simple' : pticker .SimpleFormatter ,
119120 'date' : mdates .AutoDateFormatter ,
124125 'func' : mticker .FuncFormatter ,
125126 'strmethod' : mticker .StrMethodFormatter ,
126127 'formatstr' : mticker .FormatStrFormatter ,
127- 'log' : mticker .LogFormatterSciNotation ,
128- 'sci' : mticker .LogFormatterSciNotation ,
129- 'math' : mticker .LogFormatterMathtext ,
128+ 'log' : mticker .LogFormatterSciNotation , # NOTE: this is subclass of Mathtext class
130129 'logit' : mticker .LogitFormatter ,
131130 'eng' : mticker .EngFormatter ,
132131 'percent' : mticker .PercentFormatter ,
140139 'deglon' : partial (pticker .SimpleFormatter , negpos = 'WE' , suffix = '\N{DEGREE SIGN} ' , wraprange = (- 180 , 180 )), # noqa: E501
141140 'dmslon' : partial (pticker ._LongitudeFormatter , dms = True ),
142141 'dmslat' : partial (pticker ._LatitudeFormatter , dms = True ),
142+ 'math' : mticker .LogFormatterMathtext , # deprecated (use SciNotation subclass)
143143}
144144if hasattr (mdates , 'ConciseDateFormatter' ):
145145 FORMATTERS ['concise' ] = mdates .ConciseDateFormatter
@@ -1007,6 +1007,7 @@ def Formatter(formatter, *args, date=False, index=False, **kwargs):
10071007 ====================== ============================================== ===============================================================
10081008 ``'null'``, ``'none'`` `~matplotlib.ticker.NullFormatter` No tick labels
10091009 ``'auto'`` `~proplot.ticker.AutoFormatter` New default tick labels for axes
1010+ ``'sci'`` `~proplot.ticker.SciFormatter` Format ticks with scientific notation.
10101011 ``'simple'`` `~proplot.ticker.SimpleFormatter` New default tick labels for e.g. contour labels
10111012 ``'sigfig'`` `~proplot.ticker.SigFigFormatter` Format labels using the first ``N`` significant digits
10121013 ``'frac'`` `~proplot.ticker.FracFormatter` Rational fractions
@@ -1018,9 +1019,8 @@ def Formatter(formatter, *args, date=False, index=False, **kwargs):
10181019 ``'formatstr'`` `~matplotlib.ticker.FormatStrFormatter` From C-style ``string % format`` notation
10191020 ``'func'`` `~matplotlib.ticker.FuncFormatter` Use an arbitrary function
10201021 ``'index'`` `~matplotlib.ticker.IndexFormatter` List of strings corresponding to non-negative integer positions
1021- ``'log'``, ``'sci'`` `~matplotlib.ticker.LogFormatterSciNotation` For log-scale axes with scientific notation
1022+ ``'log'`` `~matplotlib.ticker.LogFormatterSciNotation` For log-scale axes with scientific notation
10221023 ``'logit'`` `~matplotlib.ticker.LogitFormatter` For logistic-scale axes
1023- ``'math'`` `~matplotlib.ticker.LogFormatterMathtext` For log-scale axes with math text
10241024 ``'percent'`` `~matplotlib.ticker.PercentFormatter` Trailing percent sign
10251025 ``'scalar'`` `~matplotlib.ticker.ScalarFormatter` Old default tick labels for axes
10261026 ``'strmethod'`` `~matplotlib.ticker.StrMethodFormatter` From the ``string.format`` method
0 commit comments