From 9b2f41033a0e73b025b3ef8d219f7cfe106ef8fc Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 27 Dec 2022 20:46:41 +0000 Subject: [PATCH] Rename t > theta --- lib/matplotlib/projections/polar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/projections/polar.py b/lib/matplotlib/projections/polar.py index 5f3832a21a89..3f2888e956b5 100644 --- a/lib/matplotlib/projections/polar.py +++ b/lib/matplotlib/projections/polar.py @@ -43,16 +43,16 @@ def __init__(self, axis=None, use_rmin=True, def transform_non_affine(self, tr): # docstring inherited - t, r = np.transpose(tr) + theta, r = np.transpose(tr) # PolarAxes does not use the theta transforms here, but apply them for # backwards-compatibility if not being used by it. if self._apply_theta_transforms and self._axis is not None: - t *= self._axis.get_theta_direction() - t += self._axis.get_theta_offset() + theta *= self._axis.get_theta_direction() + theta += self._axis.get_theta_offset() if self._use_rmin and self._axis is not None: r = (r - self._axis.get_rorigin()) * self._axis.get_rsign() r = np.where(r >= 0, r, np.nan) - return np.column_stack([r * np.cos(t), r * np.sin(t)]) + return np.column_stack([r * np.cos(theta), r * np.sin(theta)]) def transform_path_non_affine(self, path): # docstring inherited