Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7fd766c

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

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

‎lib/matplotlib/projections/polar.py

Copy file name to clipboardExpand all lines: lib/matplotlib/projections/polar.py
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.