10000 Allow pandas DataFrames through norms (#14002) · matplotlib/matplotlib@088ed59 · GitHub
[go: up one dir, main page]

Skip to content

Commit 088ed59

Browse files
authored
Allow pandas DataFrames through norms (#14002)
Allow pandas DataFrames through norms
2 parents ddc1b23 + 3a0a354 commit 088ed59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def process_value(value):
895895
# ensure data passed in as an ndarray subclass are interpreted as
896896
# an ndarray. See issue #6622.
897897
mask = np.ma.getmask(value)
898-
data = np.asarray(np.ma.getdata(value))
898+
data = np.asarray(value)
899899
result = np.ma.array(data, mask=mask, dtype=dtype, copy=True)
900900
return result, is_scalar
901901

0 commit comments

Comments
 (0)
0