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.
2 parents ddc1b23 + 3a0a354 commit 088ed59Copy full SHA for 088ed59
lib/matplotlib/colors.py
@@ -895,7 +895,7 @@ def process_value(value):
895
# ensure data passed in as an ndarray subclass are interpreted as
896
# an ndarray. See issue #6622.
897
mask = np.ma.getmask(value)
898
- data = np.asarray(np.ma.getdata(value))
+ data = np.asarray(value)
899
result = np.ma.array(data, mask=mask, dtype=dtype, copy=True)
900
return result, is_scalar
901
0 commit comments