2020 NullLocator , LogLocator , AutoLocator , AutoMinorLocator ,
2121 SymmetricalLogLocator , LogitLocator )
2222from matplotlib .transforms import Transform , IdentityTransform
23- from matplotlib .cbook import warn_deprecated
2423
2524
2625class ScaleBase :
@@ -41,7 +40,7 @@ class ScaleBase:
4140
4241 """
4342
44- def __init__ (self , axis , ** kwargs ):
43+ def __init__ (self , axis ):
4544 r"""
4645 Construct a new scale.
4746
@@ -54,14 +53,6 @@ def __init__(self, axis, **kwargs):
5453 be used: a single scale object should be usable by multiple
5554 `~matplotlib.axis.Axis`\es at the same time.
5655 """
57- if kwargs :
58- warn_deprecated (
59- '3.2' , removal = '3.4' ,
60- message = (
61- f"ScaleBase got an unexpected keyword argument "
62- f"{ next (iter (kwargs ))!r} . This will become an error "
63- "%(removal)s." )
64- )
6556
6657 def get_transform (self ):
6758 """
@@ -95,13 +86,12 @@ class LinearScale(ScaleBase):
9586
9687 name = 'linear'
9788
98- def __init__ (self , axis , ** kwargs ):
89+ def __init__ (self , axis ):
9990 # This method is present only to prevent inheritance of the base class'
10091 # constructor docstring, which would otherwise end up interpolated into
10192 # the docstring of Axis.set_scale.
10293 """
10394 """
104- super ().__init__ (axis , ** kwargs )
10595
10696 def set_default_locators_and_formatters (self , axis ):
10797 # docstring inherited
@@ -302,15 +292,10 @@ def __init__(self, axis, **kwargs):
302292 @cbook ._rename_parameter ("3.3" , f"nonpos{ axis_name } " , "nonpositive" )
303293 def __init__ (* , base = 10 , subs = None , nonpositive = "clip" ):
304294 return base , subs , nonpositive
295+
305296 base , subs , nonpositive = __init__ (** kwargs )
306297 self ._transform = LogTransform (base , nonpositive )
307298 self .subs = subs
308- self ._nonpositive = nonpositive
309- self ._axis_name = axis_name
310-
311- def __deepcopy__ (self , memo ):
312- return self .__init__ (self ._axis_name , base = self .base , subs = self .subs ,
313- nonpositive = self ._nonpositive )
314299
315300 base = property (lambda self : self ._transform .base )
316301
@@ -485,15 +470,7 @@ def __init__(self, axis, **kwargs):
485470 @cbook ._rename_parameter ("3.3" , f"linthresh{ axis_name } " , "linthresh" )
486471 @cbook ._rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
487472 @cbook ._rename_parameter ("3.3" , f"linscale{ axis_name } " , "linscale" )
488- def __init__ (* , base = 10 , linthresh = 2 , subs = None , linscale = 1 , ** kwargs ):
489- if kwargs :
490- warn_deprecated (
491- '3.2' , removal = '3.4' ,
492- message = (
493- f"SymmetricalLogScale got an unexpected keyword "
494- f"argument { next (iter (kwargs ))!r} . This will become "
495- "an error %(removal)s." )
496- )
473+ def __init__ (* , base = 10 , linthresh = 2 , subs = None , linscale = 1 ):
497474 return base , linthresh , subs , linscale
498475
499476 base , linthresh , subs , linscale = __init__ (** kwargs )
0 commit comments