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

Skip to content

Commit b4b3235

Browse files
committed
Improve error message.
1 parent cba8e7d commit b4b3235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1458,7 +1458,7 @@ def _contour_args(self, args, kwargs):
14581458
elif (("X" in kwargs) ^ ("Y" in kwargs)) and "Z" in kwargs:
14591459
raise TypeError(
14601460
"Both or neither 'X' and 'Y' may be passed as kwargs. "
1461-
"Passing only one of the two is not allowed."
1461+
"Passing only one of 'X' or 'Y' is not allowed."
14621462
)
14631463
elif "Z" in kwargs:
14641464
z = ma.asarray(kwargs.pop("Z"), dtype=np.float64)

0 commit comments

Comments
 (0)