Revision: 7207
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7207&view=rev
Author:   mdboom
Date:     2009-06-10 16:41:06 +0000 (Wed, 10 Jun 2009)

Log Message:
-----------
Bug: 2671465 quiver plot adds unwanted lines to image

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

Modified: trunk/matplotlib/lib/matplotlib/quiver.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/quiver.py   2009-06-09 22:40:35 UTC (rev 
7206)
+++ trunk/matplotlib/lib/matplotlib/quiver.py   2009-06-10 16:41:06 UTC (rev 
7207)
@@ -500,6 +500,10 @@
         minsh = self.minshaft * self.headlength
         N = len(length)
         length = length.reshape(N, 1)
+        # This number is chosen based on when pixel values overflow in Agg
+        # causing rendering errors
+        length = np.minimum(length, 2 ** 16)
+
         # x, y: normal horizontal arrow
         x = np.array([0, -self.headaxislength,
                         -self.headlength, 0], np.float64)


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

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to