From a6bf1b41f48f0bcf07b3cc9d1ce5d7a950601d02 Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 21 Aug 2022 12:49:10 +0200 Subject: [PATCH] Document polar handling of _interpolation_steps. --- lib/matplotlib/projections/polar.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/projections/polar.py b/lib/matplotlib/projections/polar.py index 3c80ae3ca141..f5c42d4e7bed 100644 --- a/lib/matplotlib/projections/polar.py +++ b/lib/matplotlib/projections/polar.py @@ -17,11 +17,16 @@ class PolarTransform(mtransforms.Transform): """ - The base polar transform. This handles projection *theta* and - *r* into Cartesian coordinate space *x* and *y*, but does not - perform the ultimate affine transformation into the correct - position. + The base polar transform. + + This transform maps polar coordinates ``(theta, r)`` into Cartesian + coordinates ``(x, y) = (r * cos(theta), r * sin(theta))`` (but does not + handle positioning in screen space). + + Path segments at a fixed radius are automatically transformed to circular + arcs as long as ``path._interpolation_steps > 1``. """ + input_dims = output_dims = 2 def __init__(self, axis=None, use_rmin=True,