@@ -293,6 +293,7 @@ def _set_locator(self, locator):
293293 pass
294294
295295
296+ @cbook .deprecated ("3.3" )
296297class IndexFormatter (Formatter ):
297298 """
298299 Format the position x to the nearest i-th label where ``i = int(x + 0.5)``.
@@ -322,13 +323,10 @@ def __call__(self, x, pos=None):
322323
323324
324325class NullFormatter (Formatter ):
325- """
326- Always return the empty string.
327- """
326+ """Always return the empty string."""
327+
328328 def __call__ (self , x , pos = None ):
329- """
330- Returns an empty string for all inputs.
331- """
329+ # docstring inherited
332330 return ''
333331
334332
@@ -428,6 +426,7 @@ def __call__(self, x, pos=None):
428426 return self .fmt .format (x = x , pos = pos )
429427
430428
429+ @cbook .deprecated ("3.3" )
431430class OldScalarFormatter (Formatter ):
432431 """
433432 Tick location is a plain old number.
@@ -2867,6 +2866,7 @@ def tick_values(self, vmin, vmax):
28672866 '%s type.' % type (self ))
28682867
28692868
2869+ @cbook .deprecated ("3.3" )
28702870class OldAutoLocator (Locator ):
28712871 """
28722872 On autoscale this class picks the best MultipleLocator to set the
0 commit comments