Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbebc61

Browse files
authored
Merge pull request#28988 from meeseeksmachine/auto-backport-of-pr-28987-on-v3.9.x
Backport PR#28987 on branch v3.9.x (Fix: Do not use numeric tolerances for axline special cases)
2 parentsda88f66 +7fd3b7b commitcbebc61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/lines.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,8 +1505,8 @@ def get_transform(self):
15051505
points_transform.transform([self._xy1,self._xy2])
15061506
dx=x2-x1
15071507
dy=y2-y1
1508-
ifnp.allclose(x1,x2):
1509-
ifnp.allclose(y1,y2):
1508+
ifdx==0:
1509+
ifdy==0:
15101510
raiseValueError(
15111511
f"Cannot draw a line through two identical points "
15121512
f"(x={(x1,x2)}, y={(y1,y2)})")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp