Skip to content

Commit 91e851e

Browse files
committed
fix exception description
1 parent a5aa349 commit 91e851e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ def get_transform(self):
14301430
if np.allclose(y1, y2):
14311431
raise ValueError(
14321432
f"Cannot draw a line through two identical points "
1433-
f"(x={self.get_xdata()}, y={self.get_ydata()})")
1433+
f"(x={(x1, x2)}, y={(y1, y2)})")
14341434
slope = np.inf
14351435
else:
14361436
slope = dy / dx

0 commit comments

Comments
 (0)