@@ -19,10 +19,10 @@ def _apply_theta_transforms_warn():
19
19
_api .warn_deprecated (
20
20
"3.7" ,
21
21
message = (
22
- "Passing `_apply_theta_transforms =True` (the default) "
22
+ "Passing `apply_theta_transforms =True` (the default) "
23
23
"is deprecated. Support for this will be removed in "
24
24
"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 "
26
26
"shift theta values before being passed to this transform."
27
27
)
28
28
)
@@ -47,8 +47,8 @@ class PolarTransform(mtransforms.Transform):
47
47
48
48
input_dims = output_dims = 2
49
49
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 ):
52
52
"""
53
53
Parameters
54
54
----------
@@ -63,15 +63,15 @@ def __init__(self, axis=None, use_rmin=True,
63
63
super ().__init__ ()
64
64
self ._axis = axis
65
65
self ._use_rmin = use_rmin
66
- self ._apply_theta_transforms = _apply_theta_transforms
66
+ self ._apply_theta_transforms = apply_theta_transforms
67
67
self ._scale_transform = scale_transform
68
- if _apply_theta_transforms :
68
+ if apply_theta_transforms :
69
69
_apply_theta_transforms_warn ()
70
70
71
71
__str__ = mtransforms ._make_str_method (
72
72
"_axis" ,
73
73
use_rmin = "_use_rmin" ,
74
- _apply_theta_transforms = "_apply_theta_transforms" )
74
+ apply_theta_transforms = "_apply_theta_transforms" )
75
75
76
76
def _get_rorigin (self ):
77
77
# Get lower r limit after being scaled by the radial scale transform
@@ -148,8 +148,10 @@ def transform_path_non_affine(self, path):
148
148
149
149
def inverted (self ):
150
150
# 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
+ )
153
155
154
156
155
157
class PolarAffine (mtransforms .Affine2DBase ):
@@ -208,7 +210,7 @@ class InvertedPolarTransform(mtransforms.Transform):
208
210
input_dims = output_dims = 2
209
211
210
212
def __init__ (self , axis = None , use_rmin = True ,
211
- _apply_theta_transforms = True ):
213
+ * , apply_theta_transforms = True ):
212
214
"""
213
215
Parameters
214
216
----------
@@ -223,14 +225,14 @@ def __init__(self, axis=None, use_rmin=True,
223
225
super ().__init__ ()
224
226
self ._axis = axis
225
227
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 :
228
230
_apply_theta_transforms_warn ()
229
231
230
232
__str__ = mtransforms ._make_str_method (
231
233
"_axis" ,
232
234
use_rmin = "_use_rmin" ,
233
- _apply_theta_transforms = "_apply_theta_transforms" )
235
+ apply_theta_transforms = "_apply_theta_transforms" )
234
236
235
237
@_api .rename_parameter ("3.8" , "xy" , "values" )
236
238
def transform_non_affine (self , values ):
@@ -251,8 +253,10 @@ def transform_non_affine(self, values):
251
253
252
254
def inverted (self ):
253
255
# 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
+ )
256
260
257
261
258
262
class ThetaFormatter (mticker .Formatter ):
@@ -896,7 +900,7 @@ def _set_lim_and_transforms(self):
896
900
# data. This one is aware of rmin
897
901
self .transProjection = self .PolarTransform (
898
902
self ,
899
- _apply_theta_transforms = False ,
903
+ apply_theta_transforms = False ,
900
904
scale_transform = self .transScale
901
905
)
902
906
# Add dependency on rorigin.
0 commit comments