8000 Fixing the issue where right column and top row generate wrong stream… · matplotlib/matplotlib@0f36b56 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f36b56

Browse files
committed
Fixing the issue where right column and top row generate wrong streamlines
1 parent 5a7638e commit 0f36b56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/streamplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -603,11 +603,11 @@ def interpgrid(a, xi, yi):
603603
x = int(xi)
604604
y = int(yi)
605605
# conditional is faster than clipping for integers
606-
if x == (Nx - 2):
606+
if x == (Nx - 1):
607607
xn = x
608608
else:
609609
xn = x + 1
610-
if y == (Ny - 2):
610+
if y == (Ny - 1):
611611
yn = y
612612
else:
613613
yn = y + 1

0 commit comments

Comments
 (0)
0