7575_code_objs = {
7676 _api .rename_parameter :
7777 _api .rename_parameter ("" , "old" , "new" , lambda new : None ).__code__ ,
78- cbook . _make_keyword_only :
79- cbook . _make_keyword_only ("" , "p" , lambda p : None ).__code__ ,
78+ _api . make_keyword_only :
79+ _api . make_keyword_only ("" , "p" , lambda p : None ).__code__ ,
8080}
8181
8282
@@ -85,7 +85,7 @@ def _copy_docstring_and_deprecators(method, func=None):
8585 return functools .partial (_copy_docstring_and_deprecators , method )
8686 decorators = [docstring .copy (method )]
8787 # Check whether the definition of *method* includes @_api.rename_parameter
88- # or @_api._make_keyword_only decorators; if so, propagate them to the
88+ # or @_api.make_keyword_only decorators; if so, propagate them to the
8989 # pyplot wrapper as well.
9090 while getattr (method , "__wrapped__" , None ) is not None :
9191 for decorator_maker , code in _code_objs .items ():
@@ -1236,7 +1236,7 @@ def subplot(*args, **kwargs):
12361236 return ax
12371237
12381238
1239- @cbook . _make_keyword_only ("3.3" , "sharex" )
1239+ @_api . make_keyword_only ("3.3" , "sharex" )
12401240def subplots (nrows = 1 , ncols = 1 , sharex = False , sharey = False , squeeze = True ,
12411241 subplot_kw = None , gridspec_kw = None , ** fig_kw ):
12421242 """
@@ -1574,7 +1574,7 @@ def subplot_tool(targetfig=None):
15741574
15751575
15761576# After deprecation elapses, this can be autogenerated by boilerplate.py.
1577- @cbook . _make_keyword_only ("3.3" , "pad" )
1577+ @_api . make_keyword_only ("3.3" , "pad" )
15781578def tight_layout (pad = 1.08 , h_pad = None , w_pad = None , rect = None ):
15791579 """
15801580 Adjust the padding between and around subplots.
0 commit comments