8000 Update lib/mpl_toolkits/mplot3d/axes3d.py · matplotlib/matplotlib@235dd0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 235dd0b

Browse files
jgehrckedmcdougall
authored andcommitted
Update lib/mpl_toolkits/mplot3d/axes3d.py
Match argument names in error messages to argument names in documentation.
1 parent c50411e commit 235dd0b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1936,12 +1936,13 @@ def scatter(self, xs, ys, zs=0, zdir='z', s=20, c='b', *args, **kwargs):
19361936
ys = np.ma.ravel(ys)
19371937
zs = np.ma.ravel(zs)
19381938
if xs.size != ys.size:
1939-
raise ValueError("x and y must be the same size")
1939+
raise ValueError("Arguments 'xs' and 'ys' must be of same size.")
19401940
if xs.size != zs.size:
19411941
if zs.size == 1:
19421942
zs = np.array(zs[0] * xs.size)
19431943
else:
1944-
raise ValueError("z must be either of same size as x and y or of size 1")
1944+
raise ValueError(("Argument 'zs' must be of same size as 'xs' "
1945+
"and 'ys' or of size 1."))
19451946

19461947
s = np.ma.ravel(s) # This doesn't have to match x, y in size.
19471948

0 commit comments

Comments
 (0)
0