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

Skip to content

Commit 4aba7dc

Browse files
committed
Update polar.py to fix matplotlib issue 2541
1 parent 93de066 commit 4aba7dc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/projections/polar.py

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

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

155156
r += rmin
156157

0 commit comments

Comments
 (0)