Revision: 7749
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7749&view=rev
Author: efiring
Date: 2009-09-11 21:14:15 +0000 (Fri, 11 Sep 2009)
Log Message:
-----------
Backported quiver bug fix from trunk
Modified Paths:
--------------
branches/v0_99_maint/lib/matplotlib/quiver.py
Modified: branches/v0_99_maint/lib/matplotlib/quiver.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/quiver.py 2009-09-11 21:04:33 UTC
(rev 7748)
+++ branches/v0_99_maint/lib/matplotlib/quiver.py 2009-09-11 21:14:15 UTC
(rev 7749)
@@ -496,7 +496,11 @@
a = np.absolute(uv)
if self.scale is None:
sn = max(10, math.sqrt(self.N))
- scale = 1.8 * a[~self.Umask].mean() * sn / self.span # crude
auto-scaling
+ if self.Umask is not ma.nomask:
+ amean = a[~self.Umask].mean()
+ else:
+ amean = a.mean()
+ scale = 1.8 * amean * sn / self.span # crude auto-scaling
self.scale = scale
length = a/(self.scale*self.width)
X, Y = self._h_arrows(length)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins