10000 Add parameter doc to PolarTransform · matplotlib/matplotlib@3ea1b9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ea1b9d

Browse files
committed
Add parameter doc to PolarTransform
1 parent ba7f3f0 commit 3ea1b9d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,17 @@ class PolarTransform(mtransforms.Transform):
3131

3232
def __init__(self, axis=None, use_rmin=True,
3333
_apply_theta_transforms=True):
34+
"""
35+
Parameters
36+
----------
37+
axis : `~matplotlib.axis.Axis`, optional
38+
Axis associated with this transform. This is used to get the
39+
minimum radial limit.
40+
use_rmin : `bool`, optional
41+
If ``True``, subtract the minimum radial axis limit before
42+
transforming to Cartesian coordinates. *axis* must also be
43+
specified for this to take effect.
44+
"""
3445
super().__init__()
3546
self._axis = axis
3647
self._use_rmin = use_rmin
@@ -171,6 +182,17 @@ class InvertedPolarTransform(mtransforms.Transform):
171182

172183
def __init__(self, axis=None, use_rmin=True,
173184
_apply_theta_transforms=True):
185+
"""
186+
Parameters
187+
----------
188+
axis : `~matplotlib.axis.Axis`, optional
189+
Axis associated with this transform. This is used to get the
190+
minimum radial limit.
191+
use_rmin : `bool`, optional
192+
If ``True`` add the minimum radial axis limit after
193+
transforming from Cartesian coordinates. *axis* must also be
194+
specified for this to take effect.
195+
"""
174196
super().__init__()
175197
self._axis = axis
176198
self._use_rmin = use_rmin

0 commit comments

Comments
 (0)
0