Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 39c997e

Browse files
authored
Merge pull request #23695 from anntzer/pd
Document polar handling of _interpolation_steps.
2 parents 9b1fcf6 + a6bf1b4 commit 39c997e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,16 @@
1717

1818
class PolarTransform(mtransforms.Transform):
1919
"""
20-
The base polar transform. This handles projection *theta* and
21-
*r* into Cartesian coordinate space *x* and *y*, but does not
22-
perform the ultimate affine transformation into the correct
23-
position.
20+
The base polar transform.
21+
22+
This transform maps polar coordinates ``(theta, r)`` into Cartesian
23+
coordinates ``(x, y) = (r * cos(theta), r * sin(theta))`` (but does not
24+
handle positioning in screen space).
25+
26+
Path segments at a fixed radius are automatically transformed to circular
27+
arcs as long as ``path._interpolation_steps > 1``.
2428
"""
29+
2530
input_dims = output_dims = 2
2631

2732
def __init__(self, axis=None, use_rmin=True,

0 commit comments

Comments
 (0)