Revision: 6114
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6114&view=rev
Author:   efiring
Date:     2008-09-19 00:36:10 +0000 (Fri, 19 Sep 2008)

Log Message:
-----------
Change quiver angles kwarg from radians to degrees

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/quiver.py

Modified: trunk/matplotlib/lib/matplotlib/quiver.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/quiver.py   2008-09-19 00:30:54 UTC (rev 
6113)
+++ trunk/matplotlib/lib/matplotlib/quiver.py   2008-09-19 00:36:10 UTC (rev 
6114)
@@ -85,7 +85,7 @@
     CCW from the *x*-axis.
     With 'xy', the arrow points from (x,y) to (x+u, y+v).
     Alternatively, arbitrary angles may be specified as an array
-    of values in radians, CCW from the *x*-axis.
+    of values in degrees, CCW from the *x*-axis.
 
   *scale*: [ None | float ]
     data units per arrow unit, e.g. m/s per plot width; a smaller
@@ -481,7 +481,7 @@
         elif self.angles == 'uv':
             theta = np.angle(ma.asarray(uv[..., np.newaxis]).filled(0))
         else:
-            theta = ma.asarray(self.angles).filled(0)
+            theta = ma.asarray(self.angles*np.pi/180.0).filled(0)
         xy = (X+Y*1j) * np.exp(1j*theta)*self.width
         xy = xy[:,:,np.newaxis]
         XY = ma.concatenate((xy.real, xy.imag), axis=2)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to