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

Skip to content

Commit 2fc3007

Browse files
committed
Update polar.py simply to use %= notation
1 parent 4aba7dc commit 2fc3007

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/projections/polar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def transform_non_affine(self, xy):
151151

152152
theta -= theta_offset
153153
theta *= theta_direction
154-
theta = theta % (2 * np.pi)
154+
theta %= 2 * np.pi
155155

156156
r += rmin
157157

0 commit comments

Comments
 (0)