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 703c0ce

Browse filesBrowse files
committed
use standalone numpy shape function
1 parent 6665bc7 commit 703c0ce
Copy full SHA for 703c0ce

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/axes/_axes.py

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3947,7 +3947,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
39473947
# c not acceptable as PathCollection facecolor
39483948
raise ValueError("c of shape {} not acceptable as a color "
39493949
"sequence for x with size {}, y with size {}"
3950-
.format(c.shape, x.size, y.size))
3950+
.format(np.shape(c), x.size, y.size))
39513951
else:
39523952
colors = None # use cmap, norm after collection is created
39533953

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.