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

Skip to content

Commit d61ceda

Browse files
committed
Use masked stack to preserve mask info
1 parent cc85fb6 commit d61ceda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def _prepare_points(self):
322322
paths.append(mpath.Path(np.column_stack([xs, ys]), path.codes))
323323
xs = self.convert_xunits(offsets[:, 0])
324324
ys = self.convert_yunits(offsets[:, 1])
325-
offsets = np.column_stack([xs, ys])
325+
offsets = np.ma.column_stack([xs, ys])
326326

327327
if not transform.is_affine:
328328
paths = [transform.transform_path_non_affine(path)

0 commit comments

Comments
 (0)