|
From: <md...@us...> - 2010-08-18 16:07:43
|
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.
|