Revision: 6115
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6115&view=rev
Author:   efiring
Date:     2008-09-20 03:21:19 +0000 (Sat, 20 Sep 2008)

Log Message:
-----------
fix bug in "angles='xy'" support in quiver

Modified Paths:
--------------
    trunk/matplotlib/examples/tests/backend_driver.py
    trunk/matplotlib/lib/matplotlib/quiver.py

Modified: trunk/matplotlib/examples/tests/backend_driver.py
===================================================================
--- trunk/matplotlib/examples/tests/backend_driver.py   2008-09-19 00:36:10 UTC 
(rev 6114)
+++ trunk/matplotlib/examples/tests/backend_driver.py   2008-09-20 03:21:19 UTC 
(rev 6115)
@@ -50,6 +50,7 @@
     'customize_rc.py',
     'date_demo1.py',
     'date_demo2.py',
+    'ellipse_collection.py',
     'equal_aspect_ratio.py',
     'errorbar_limits.py',
     'fancybox_demo.py',

Modified: trunk/matplotlib/lib/matplotlib/quiver.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/quiver.py   2008-09-19 00:36:10 UTC (rev 
6114)
+++ trunk/matplotlib/lib/matplotlib/quiver.py   2008-09-20 03:21:19 UTC (rev 
6115)
@@ -477,7 +477,7 @@
         length = a/(self.scale*self.width)
         X, Y = self._h_arrows(length)
         if self.angles == 'xy':
-            theta = self._angles(U, V).filled(0)
+            theta = self._angles(U, V).filled(0)[:,np.newaxis]
         elif self.angles == 'uv':
             theta = np.angle(ma.asarray(uv[..., np.newaxis]).filled(0))
         else:


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
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to