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

Skip to content

Commit 0107a13

Browse files
committed
Fix exception with maskedarray branch of numpy (Thanks, David Huard)
svn path=/trunk/matplotlib/; revision=4892
1 parent 2156858 commit 0107a13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(self, vertices, codes=None):
117117
codes = self.LINETO * npy.ones(
118118
len(vertices), self.code_type)
119119
codes[0] = self.MOVETO
120-
vertices = ma.compress(npy.invert(mask1d), vertices, 0)
120+
vertices = npy.compress(npy.invert(mask1d), vertices, 0)
121121
vertices = npy.asarray(vertices)
122122
codes = npy.where(npy.concatenate((mask1d[-1:], mask1d[:-1])),
123123
self.MOVETO, codes)

0 commit comments

Comments
 (0)