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

Skip to content

Commit f74f3d7

Browse files
committed
Better debug message
1 parent 005f6fb commit f74f3d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/path.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ def __init__(self, vertices, codes=None, _interpolation_steps=1,
127127
vertices = _to_unmasked_float_array(vertices)
128128
if vertices.ndim != 2 or vertices.shape[1] != 2:
129129
raise ValueError(
130-
"'vertices' must be a 2D list or array with shape Nx2")
130+
"'vertices' must be a 2D list or array with shape Nx2, "
131+
"while provided vertices.shape={}.".format(vertices.shape))
131132

132133
if codes is not None:
133134
codes = np.asarray(codes, self.code_type)

0 commit comments

Comments
 (0)