Skip to content

Commit 3405fa7

Browse files
author
Yi Wei
committed
FIX: pcolormesh writing to read-only input mask
1 parent e4771f0 commit 3405fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ def remove(self, o):
668668
self.push(elem)
669669

670670

671-
def safe_masked_invalid(x, copy=False):
671+
def safe_masked_invalid(x, copy=True):
672672
x = np.array(x, subok=True, copy=copy)
673673
if not x.dtype.isnative:
674674
# If we have already made a copy, do the byteswap in place, else make a

0 commit comments

Comments
 (0)