From 57bc0f1d2c19f2d4e511d4cd9fb9f48197ea7919 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 29 Jun 2015 22:53:52 -0400 Subject: [PATCH] FIX: sign is not defined Use `np.sign` instead. --- lib/matplotlib/projections/polar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/projections/polar.py b/lib/matplotlib/projections/polar.py index 83664fe9e0dc..394301a23df2 100644 --- a/lib/matplotlib/projections/polar.py +++ b/lib/matplotlib/projections/polar.py @@ -471,10 +471,10 @@ def get_rlabel_position(self): The theta position of the radius labels in degrees. """ return self._r_label_position.to_values()[4] - + def set_rlabel_position(self, value): """Updates the theta position of the radius labels. - + Parameters ---------- value : number @@ -659,7 +659,7 @@ def drag_pan(self, button, key, x, y): dt0 = t - startt dt1 = startt - t if abs(dt1) < abs(dt0): - dt = abs(dt1) * sign(dt0) * -1.0 + dt = abs(dt1) * np.sign(dt0) * -1.0 else: dt = dt0 * -1.0 dt = (dt / np.pi) * 180.0