Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c803773

Browse files
committed
Merge pull request #735 from rhattersley/fix-empty-wedge-vertices
Fix empty wedge vertices
2 parents 61b1034 + 755890d commit c803773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def arc(cls, theta1, theta2, n=None, is_wedge=False):
630630

631631
if is_wedge:
632632
length = n * 3 + 4
633-
vertices = np.empty((length, 2), np.float_)
633+
vertices = np.zeros((length, 2), np.float_)
634634
codes = cls.CURVE4 * np.ones((length, ), cls.code_type)
635635
vertices[1] = [xA[0], yA[0]]
636636
codes[0:2] = [cls.MOVETO, cls.LINETO]

0 commit comments

Comments
 (0)