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

Skip to content

Commit 7fd766c

Browse files
committed
Merge pull request matplotlib#4569 from tacaswell/fix_polar_sign
FIX: sign is not defined
2 parents 326ccd6 + 57bc0f1 commit 7fd766c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/projections/polar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,10 @@ def get_rlabel_position(self):
471471
The theta position of the radius labels in degrees.
472472
"""
473473
return self._r_label_position.to_values()[4]
474-
474+
475475
def set_rlabel_position(self, value):
476476
"""Updates the theta position of the radius labels.
477-
477+
478478
Parameters
479479
----------
480480
value : number
@@ -659,7 +659,7 @@ def drag_pan(self, button, key, x, y):
659659
dt0 = t - startt
660660
dt1 = startt - t
661661
if abs(dt1) < abs(dt0):
662-
dt = abs(dt1) * sign(dt0) * -1.0
662+
dt = abs(dt1) * np.sign(dt0) * -1.0
663663
else:
664664
dt = dt0 * -1.0
665665
dt = (dt / np.pi) * 180.0

0 commit comments

Comments
 (0)