10000 Update lines.py · matplotlib/matplotlib@1f50071 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f50071

Browse files
authored
Update lines.py
1 parent bed1335 commit 1f50071

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
@@ -1526,7 +1526,7 @@ def get_transform(self):
15261526

15271527
# General case: find intersections with view limits in either
15281528
# direction, and draw between the middle two points.
1529-
if not manual_slope and (np.isclose(slope, 0, atol=1E-16)):
1529+
if not manual_slope and (np.isclose(slope, 0, atol=1E-15) or slope == 0):
15301530
start = vxlo, y1
15311531
stop = vxhi, y1
15321532
elif np.isinf(slope):

0 commit comments

Comments
 (0)
0