10000 Merge pull request #24851 from dstansby/t-theta · matplotlib/matplotlib@aa846a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit aa846a3

Browse files
authored
Merge pull request #24851 from dstansby/t-theta
2 parents fc5d316 + 9b2f410 commit aa846a3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,16 @@ def __init__(self, axis=None, use_rmin=True,
4343

4444
def transform_non_affine(self, tr):
4545
# docstring inherited
46-
t, r = np.transpose(tr)
46+
theta, r = np.transpose(tr)
4747
# PolarAxes does not use the theta transforms here, but apply them for
4848
# backwards-compatibility if not being used by it.
4949
if self._apply_theta_transforms and self._axis is not None:
50-
t *= self._axis.get_theta_direction()
51-
t += self._axis.get_theta_offset()
50+
theta *= self._axis.get_theta_direction()
51+
theta += self._axis.get_theta_offset()
5252
if self._use_rmin and self._axis is not None:
5353
r = (r - self._axis.get_rorigin()) * self._axis.get_rsign()
5454
r = np.where(r >= 0, r, np.nan)
55-
return np.column_stack([r * np.cos(t), r * np.sin(t)])
55+
return np.column_stack([r * np.cos(theta), r * np.sin(theta)])
5656

5757
def transform_path_non_affine(self, path):
5858
# docstring inherited

0 commit comments

Comments
 (0)
0