Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 088ed59

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/colors.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colors.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.