Revision: 8647
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8647&view=rev
Author:   mdboom
Date:     2010-08-18 16:07:37 +0000 (Wed, 18 Aug 2010)

Log Message:
-----------
Fix bug in regular polygon handling

Modified Paths:
--------------
    branches/v1_0_maint/lib/matplotlib/path.py

Modified: branches/v1_0_maint/lib/matplotlib/path.py
===================================================================
--- branches/v1_0_maint/lib/matplotlib/path.py  2010-08-17 18:16:21 UTC (rev 
8646)
+++ branches/v1_0_maint/lib/matplotlib/path.py  2010-08-18 16:07:37 UTC (rev 
8647)
@@ -408,7 +408,7 @@
             # "points-up"
             theta += np.pi / 2.0
             verts = np.concatenate((np.cos(theta), np.sin(theta)), 1)
-            codes = np.empty((numVertices,))
+            codes = np.empty((numVertices + 1,))
             codes[0] = cls.MOVETO
             codes[1:-1] = cls.LINETO
             codes[-1] = cls.CLOSEPOLY


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 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to