@@ -202,7 +202,6 @@ def set_default_locators_and_formatters(self, axis):
202202class LogTransform (Transform ):
203203 input_dims = output_dims = 1
204204
205- @_api .rename_parameter ("3.3" , "nonpos" , "nonpositive" )
206205 def __init__ (self , base , nonpositive = 'clip' ):
207206 super ().__init__ ()
208207 if base <= 0 or base == 1 :
@@ -264,17 +263,7 @@ class LogScale(ScaleBase):
264263 """
265264 name = 'log'
266265
267- @_api .deprecated ("3.3" , alternative = "scale.LogTransform" )
268- @property
269- def LogTransform (self ):
270- return LogTransform
271-
272- @_api .deprecated ("3.3" , alternative = "scale.InvertedLogTransform" )
273- @property
274- def InvertedLogTransform (self ):
275- return InvertedLogTransform
276-
277- def __init__ (self , axis , ** kwargs ):
266+ def __init__ (self , axis , * , base = 10 , subs = None , nonpositive = "clip" ):
278267 """
279268 Parameters
280269 ----------
@@ -290,18 +279,6 @@ def __init__(self, axis, **kwargs):
290279 in a log10 scale, ``[2, 3, 4, 5, 6, 7, 8, 9]`` will place 8
291280 logarithmically spaced minor ticks between each major tick.
292281 """
293- # After the deprecation, the whole (outer) __init__ can be replaced by
294- # def __init__(self, axis, *, base=10, subs=None, nonpositive="clip")
295- # The following is to emit the right warnings depending on the axis
296- # used, as the *old* kwarg names depended on the axis.
297- axis_name = getattr (axis , "axis_name" , "x" )
298- @_api .rename_parameter ("3.3" , f"base{ axis_name } " , "base" )
299- @_api .rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
300- @_api .rename_parameter ("3.3" , f"nonpos{ axis_name } " , "nonpositive" )
301- def __init__ (* , base = 10 , subs = None , nonpositive = "clip" ):
302- return base , subs , nonpositive
303-
304- base , subs , nonpositive = __init__ (** kwargs )
305282 self ._transform = LogTransform (base , nonpositive )
306283 self .subs = subs
307284
@@ -460,28 +437,7 @@ class SymmetricalLogScale(ScaleBase):
460437 """
461438 name = 'symlog'
462439
463- @_api .deprecated ("3.3" , alternative = "scale.SymmetricalLogTransform" )
464- @property
465- def SymmetricalLogTransform (self ):
466- return SymmetricalLogTransform
467-
468- @_api .deprecated (
469- "3.3" , alternative = "scale.InvertedSymmetricalLogTransform" )
470- @property
471- def InvertedSymmetricalLogTransform (self ):
472- return InvertedSymmetricalLogTransform
473-
474- def __init__ (self , axis , ** kwargs ):
475- axis_name = getattr (axis , "axis_name" , "x" )
476- # See explanation in LogScale.__init__.
477- @_api .rename_parameter ("3.3" , f"base{ axis_name } " , "base" )
478- @_api .rename_parameter ("3.3" , f"linthresh{ axis_name } " , "linthresh" )
479- @_api .rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
480- @_api .rename_parameter ("3.3" , f"linscale{ axis_name } " , "linscale" )
481- def __init__ (* , base = 10 , linthresh = 2 , subs = None , linscale = 1 ):
482- return base , linthresh , subs , linscale
483-
484- base , linthresh , subs , linscale = __init__ (** kwargs )
440+ def __init__ (self , axis , * , base = 10 , linthresh = 2 , subs = None , linscale = 1 ):
485441 self ._transform = SymmetricalLogTransform (base , linthresh , linscale )
486442 self .subs = subs
487443
@@ -505,7 +461,6 @@ def get_transform(self):
505461class LogitTransform (Transform ):
506462 input_dims = output_dims = 1
507463
508- @_api .rename_parameter ("3.3" , "nonpos" , "nonpositive" )
509464 def __init__ (self , nonpositive = 'mask' ):
510465 super ().__init__ ()
511466 _api .check_in_list (['mask' , 'clip' ], nonpositive = nonpositive )
@@ -531,7 +486,6 @@ def __str__(self):
531486class LogisticTransform (Transform ):
532487 input_dims = output_dims = 1
533488
534- @_api .rename_parameter ("3.3" , "nonpos" , "nonpositive" )
535489 def __init__ (self , nonpositive = 'mask' ):
536490 super ().__init__ ()
537491 self ._nonpositive = nonpositive
@@ -556,7 +510,6 @@ class LogitScale(ScaleBase):
556510 """
557511 name = 'logit'
558512
559- @_api .rename_parameter ("3.3" , "nonpos" , "nonpositive" )
560513 def __init__ (self , axis , nonpositive = 'mask' , * ,
561514 one_half = r"\frac{1}{2}" , use_overline = False ):
562515 r"""
0 commit comments