Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23fa33b commit d5680c7Copy full SHA for d5680c7
1 file changed
lib/matplotlib/path.py
@@ -408,7 +408,7 @@ def unit_regular_polygon(cls, numVertices):
408
# "points-up"
409
theta += np.pi / 2.0
410
verts = np.concatenate((np.cos(theta), np.sin(theta)), 1)
411
- codes = np.empty((numVertices,))
+ codes = np.empty((numVertices + 1,))
412
codes[0] = cls.MOVETO
413
codes[1:-1] = cls.LINETO
414
codes[-1] = cls.CLOSEPOLY
0 commit comments