Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 703c0ce

Browse files
committed
use standalone numpy shape function
1 parent 6665bc7 commit 703c0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines 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)