@@ -19,10 +19,10 @@ def _apply_theta_transforms_warn():
1919 _api .warn_deprecated (
2020 "3.7" ,
2121 message = (
22- "Passing `_apply_theta_transforms =True` (the default) "
22+ "Passing `apply_theta_transforms =True` (the default) "
2323 "is deprecated. Support for this will be removed in "
2424 "Matplotlib %(removal)s. To prevent this warning, "
25- "set `_apply_theta_transforms =False`, and make sure to "
25+ "set `apply_theta_transforms =False`, and make sure to "
2626 "shift theta values before being passed to this transform."
2727 )
2828 )
@@ -47,8 +47,8 @@ class PolarTransform(mtransforms.Transform):
4747
4848 input_dims = output_dims = 2
4949
50- def __init__ (self , axis = None , use_rmin = True ,
51- _apply_theta_transforms = True , * , scale_transform = None ):
50+ def __init__ (self , axis = None , use_rmin = True , * ,
51+ apply_theta_transforms = True , scale_transform = None ):
5252 """
5353 Parameters
5454 ----------
@@ -63,15 +63,15 @@ def __init__(self, axis=None, use_rmin=True,
6363 super ().__init__ ()
6464 self ._axis = axis
6565 self ._use_rmin = use_rmin
66- self ._apply_theta_transforms = _apply_theta_transforms
66+ self ._apply_theta_transforms = apply_theta_transforms
6767 self ._scale_transform = scale_transform
68- if _apply_theta_transforms :
68+ if apply_theta_transforms :
6969 _apply_theta_transforms_warn ()
7070
7171 __str__ = mtransforms ._make_str_method (
7272 "_axis" ,
7373 use_rmin = "_use_rmin" ,
74- _apply_theta_transforms = "_apply_theta_transforms" )
74+ apply_theta_transforms = "_apply_theta_transforms" )
7575
7676 def _get_rorigin (self ):
7777 # Get lower r limit after being scaled by the radial scale transform
@@ -148,8 +148,10 @@ def transform_path_non_affine(self, path):
148148
149149 def inverted (self ):
150150 # docstring inherited
151- return PolarAxes .InvertedPolarTransform (self ._axis , self ._use_rmin ,
152- self ._apply_theta_transforms )
151+ return PolarAxes .InvertedPolarTransform (
152+ self ._axis , self ._use_rmin ,
153+ apply_theta_transforms = self ._apply_theta_transforms
154+ )
153155
154156
155157class PolarAffine (mtransforms .Affine2DBase ):
@@ -208,7 +210,7 @@ class InvertedPolarTransform(mtransforms.Transform):
208210 input_dims = output_dims = 2
209211
210212 def __init__ (self , axis = None , use_rmin = True ,
211- _apply_theta_transforms = True ):
213+ * , apply_theta_transforms = True ):
212214 """
213215 Parameters
214216 ----------
@@ -223,14 +225,14 @@ def __init__(self, axis=None, use_rmin=True,
223225 super ().__init__ ()
224226 self ._axis = axis
225227 self ._use_rmin = use_rmin
226- self ._apply_theta_transforms = _apply_theta_transforms
227- if _apply_theta_transforms :
228+ self ._apply_theta_transforms = apply_theta_transforms
229+ if apply_theta_transforms :
228230 _apply_theta_transforms_warn ()
229231
230232 __str__ = mtransforms ._make_str_method (
231233 "_axis" ,
232234 use_rmin = "_use_rmin" ,
233- _apply_theta_transforms = "_apply_theta_transforms" )
235+ apply_theta_transforms = "_apply_theta_transforms" )
234236
235237 @_api .rename_parameter ("3.8" , "xy" , "values" )
236238 def transform_non_affine (self , values ):
@@ -251,8 +253,10 @@ def transform_non_affine(self, values):
251253
252254 def inverted (self ):
253255 # docstring inherited
254- return PolarAxes .PolarTransform (self ._axis , self ._use_rmin ,
255- self ._apply_theta_transforms )
256+ return PolarAxes .PolarTransform (
257+ self ._axis , self ._use_rmin ,
258+ apply_theta_transforms = self ._apply_theta_transforms
259+ )
256260
257261
258262class ThetaFormatter (mticker .Formatter ):
@@ -896,7 +900,7 @@ def _set_lim_and_transforms(self):
896900 # data. This one is aware of rmin
897901 self .transProjection = self .PolarTransform (
898902 self ,
899- _apply_theta_transforms = False ,
903+ apply_theta_transforms = False ,
900904 scale_transform = self .transScale
901905 )
902906 # Add dependency on rorigin.
0 commit comments