@@ -165,35 +165,35 @@ def Formatter(formatter, *args, date=False, **kwargs):
165
165
4. In all other cases, a dictionary lookup is performed
166
166
(see below table).
167
167
168
- ========================= ============================================== ========= ===================================================================================================================================
169
- Key Class Description
170
- ========================= ============================================== ========= ===================================================================================================================================
171
- ``'null'``, ``'none'`` `~matplotlib.ticker.NullFormatter` No tick labels
172
- ``'auto'``, ``'default'`` `AutoFormatter` New default tick labels for axes
173
- ``'simple'`` `SimpleFormatter` New default tick labels for e.g. contour labels
174
- ``'frac'`` `FracFormatter` Rational fractions
175
- ``'date'`` `~matplotlib.dates.AutoDateFormatter` Default tick labels for datetime axes
176
- ``'datestr'`` `~matplotlib.dates.DateFormatter` Date formatting with C-style ``string % format`` notation
177
- ``'concise'`` `~matplotlib.dates.ConciseDateFormatter` More concise default tick labels, introduced in `matplotlib 3.1 <https://matplotlib.org/3.1.0/users/whats_new.html#concisedateformatter>`__
178
- ``'scalar'`` `~matplotlib.ticker.ScalarFormatter` Old default tick labels for axes
179
- ``'strmethod'`` `~matplotlib.ticker.StrMethodFormatter` From the ``string.format`` method
180
- ``'formatstr'`` `~matplotlib.ticker.FormatStrFormatter` From C-style ``string % format`` notation
181
- ``'log'``, ``'sci'`` `~matplotlib.ticker.LogFormatterSciNotation` For log-scale axes with scientific notation
182
- ``'math'`` `~matplotlib.ticker.LogFormatterMathtext` For log-scale axes with math text
183
- ``'logit'`` `~matplotlib.ticker.LogitFormatter` For logistic-scale axes
184
- ``'eng'`` `~matplotlib.ticker.EngFormatter` Engineering notation
185
- ``'percent'`` `~matplotlib.ticker.PercentFormatter` Trailing percent sign
186
- ``'fixed'`` `~matplotlib.ticker.FixedFormatter` List of strings
187
- ``'index'`` `~matplotlib.ticker.IndexFormatter` List of strings corresponding to non-negative integer positions along the axis
188
- ``'theta'`` `~matplotlib.projections.polar.ThetaFormatter` Formats radians as degrees, with a degree symbol
189
- ``'pi'`` `FracFormatter` preset Fractions of :math:`\pi`
190
- ``'e'`` `FracFormatter` preset Fractions of *e*
191
- ``'deg'`` `SimpleFormatter` preset Trailing degree symbol
192
- ``'deglon'`` `SimpleFormatter` preset Trailing degree symbol and cardinal "WE" indicator
193
- ``'deglat'`` `SimpleFormatter` preset Trailing degree symbol and cardinal "SN" indicator
194
- ``'lon'`` `SimpleFormatter` preset Cardinal "WE" indicator
195
- ``'lat'`` `SimpleFormatter` preset Cardinal "SN" indicator
196
- ========================= ============================================== ========= ===================================================================================================================================
168
+ ====================== ============================================== ===================================================================================================================================
169
+ Key Class Description
170
+ ====================== ============================================== ===================================================================================================================================
171
+ ``'null'``, ``'none'`` `~matplotlib.ticker.NullFormatter` No tick labels
172
+ ``'auto'`` `AutoFormatter` New default tick labels for axes
173
+ ``'simple'`` `SimpleFormatter` New default tick labels for e.g. contour labels
174
+ ``'frac'`` `FracFormatter` Rational fractions
175
+ ``'date'`` `~matplotlib.dates.AutoDateFormatter` Default tick labels for datetime axes
176
+ ``'datestr'`` `~matplotlib.dates.DateFormatter` Date formatting with C-style ``string % format`` notation
177
+ ``'concise'`` `~matplotlib.dates.ConciseDateFormatter` More concise date labels introduced in `matplotlib 3.1 <https://matplotlib.org/3.1.0/users/whats_new.html#concisedateformatter>`__
178
+ ``'scalar'`` `~matplotlib.ticker.ScalarFormatter` Old default tick labels for axes
179
+ ``'strmethod'`` `~matplotlib.ticker.StrMethodFormatter` From the ``string.format`` method
180
+ ``'formatstr'`` `~matplotlib.ticker.FormatStrFormatter` From C-style ``string % format`` notation
181
+ ``'log'``, ``'sci'`` `~matplotlib.ticker.LogFormatterSciNotation` For log-scale axes with scientific notation
182
+ ``'math'`` `~matplotlib.ticker.LogFormatterMathtext` For log-scale axes with math text
183
+ ``'logit'`` `~matplotlib.ticker.LogitFormatter` For logistic-scale axes
184
+ ``'eng'`` `~matplotlib.ticker.EngFormatter` Engineering notation
185
+ ``'percent'`` `~matplotlib.ticker.PercentFormatter` Trailing percent sign
186
+ ``'fixed'`` `~matplotlib.ticker.FixedFormatter` List of strings
187
+ ``'index'`` `~matplotlib.ticker.IndexFormatter` List of strings corresponding to non-negative integer positions along the axis
188
+ ``'theta'`` `~matplotlib.projections.polar.ThetaFormatter` Formats radians as degrees, with a degree symbol
189
+ ``'pi'`` `FracFormatter` preset Fractions of :math:`\pi`
190
+ ``'e'`` `FracFormatter` preset Fractions of *e*
191
+ ``'deg'`` `SimpleFormatter` preset Trailing degree symbol
192
+ ``'deglon'`` `SimpleFormatter` preset Trailing degree symbol and cardinal "WE" indicator
193
+ ``'deglat'`` `SimpleFormatter` preset Trailing degree symbol and cardinal "SN" indicator
194
+ ``'lon'`` `SimpleFormatter` preset Cardinal "WE" indicator
195
+ ``'lat'`` `SimpleFormatter` preset Cardinal "SN" indicator
196
+ ====================== ============================================== ===================================================================================================================================
197
197
198
198
date : bool, optional
199
199
Toggles the behavior when `formatter` contains a ``'%'`` sign (see
@@ -559,7 +559,7 @@ def set_default_locators_and_formatters(self, axis, only_if_default=False):
559
559
axis .isDefault_majloc = True
560
560
if not only_if_default or axis .isDefault_majfmt :
561
561
axis .set_major_formatter (
562
- getattr (self , '_major_formatter' , None ) or Formatter ('default ' )
562
+ getattr (self , '_major_formatter' , None ) or Formatter ('auto ' )
563
563
)
564
564
axis .isDefault_majfmt = True
565
565
if (not only_if_default or axis .isDefault_minloc
@@ -1277,7 +1277,6 @@ def transform_non_affine(self, a):
1277
1277
locators ['theta' ] = mpolar .ThetaLocator
1278
1278
1279
1279
formatters = { # note default LogFormatter uses ugly e+00 notation
1280
- 'default' : AutoFormatter ,
1281
1280
'auto' : AutoFormatter ,
1282
1281
'frac' : FracFormatter ,
1283
1282
'simple' : SimpleFormatter ,
0 commit comments