@@ -194,7 +194,7 @@ def set_default_locators_and_formatters(self, axis):
194194class LogTransform (Transform ):
195195 input_dims = output_dims = 1
196196
197- @cbook . _rename_parameter ("3.3" , "nonpos" , "nonpositive" )
197+ @_api . rename_parameter ("3.3" , "nonpos" , "nonpositive" )
198198 def __init__ (self , base , nonpositive = 'clip' ):
199199 super ().__init__ ()
200200 if base <= 0 or base == 1 :
@@ -287,9 +287,9 @@ def __init__(self, axis, **kwargs):
287287 # The following is to emit the right warnings depending on the axis
288288 # used, as the *old* kwarg names depended on the axis.
289289 axis_name = getattr (axis , "axis_name" , "x" )
290- @cbook . _rename_parameter ("3.3" , f"base{ axis_name } " , "base" )
291- @cbook . _rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
292- @cbook . _rename_parameter ("3.3" , f"nonpos{ axis_name } " , "nonpositive" )
290+ @_api . rename_parameter ("3.3" , f"base{ axis_name } " , "base" )
291+ @_api . rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
292+ @_api . rename_parameter ("3.3" , f"nonpos{ axis_name } " , "nonpositive" )
293293 def __init__ (* , base = 10 , subs = None , nonpositive = "clip" ):
294294 return base , subs , nonpositive
295295
@@ -466,10 +466,10 @@ def InvertedSymmetricalLogTransform(self):
466466 def __init__ (self , axis , ** kwargs ):
467467 axis_name = getattr (axis , "axis_name" , "x" )
468468 # See explanation in LogScale.__init__.
469- @cbook . _rename_parameter ("3.3" , f"base{ axis_name } " , "base" )
470- @cbook . _rename_parameter ("3.3" , f"linthresh{ axis_name } " , "linthresh" )
471- @cbook . _rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
472- @cbook . _rename_parameter ("3.3" , f"linscale{ axis_name } " , "linscale" )
469+ @_api . rename_parameter ("3.3" , f"base{ axis_name } " , "base" )
470+ @_api . rename_parameter ("3.3" , f"linthresh{ axis_name } " , "linthresh" )
471+ @_api . rename_parameter ("3.3" , f"subs{ axis_name } " , "subs" )
472+ @_api . rename_parameter ("3.3" , f"linscale{ axis_name } " , "linscale" )
473473 def __init__ (* , base = 10 , linthresh = 2 , subs = None , linscale = 1 ):
474474 return base , linthresh , subs , linscale
475475
@@ -497,7 +497,7 @@ def get_transform(self):
497497class LogitTransform (Transform ):
498498 input_dims = output_dims = 1
499499
500- @cbook . _rename_parameter ("3.3" , "nonpos" , "nonpositive" )
500+ @_api . rename_parameter ("3.3" , "nonpos" , "nonpositive" )
501501 def __init__ (self , nonpositive = 'mask' ):
502502 super ().__init__ ()
503503 _api .check_in_list (['mask' , 'clip' ], nonpositive = nonpositive )
@@ -523,7 +523,7 @@ def __str__(self):
523523class LogisticTransform (Transform ):
524524 input_dims = output_dims = 1
525525
526- @cbook . _rename_parameter ("3.3" , "nonpos" , "nonpositive" )
526+ @_api . rename_parameter ("3.3" , "nonpos" , "nonpositive" )
527527 def __init__ (self , nonpositive = 'mask' ):
528528 super ().__init__ ()
529529 self ._nonpositive = nonpositive
@@ -548,7 +548,7 @@ class LogitScale(ScaleBase):
548548 """
549549 name = 'logit'
550550
551- @cbook . _rename_parameter ("3.3" , "nonpos" , "nonpositive" )
551+ @_api . rename_parameter ("3.3" , "nonpos" , "nonpositive" )
552552 def __init__ (self , axis , nonpositive = 'mask' , * ,
553553 one_half = r"\frac{1}{2}" , use_overline = False ):
554554 r"""
0 commit comments