8000 Merge pull request #11455 from pmackenz/master · matplotlib/matplotlib@f256b79 · GitHub
[go: up one dir, main page]

Skip to content

Commit f256b79

Browse files
authored
Merge pull request #11455 from pmackenz/master
Fixing the issue where right column and top row generate wrong stream…
2 parents 3696261 + 4af7f5e commit f256b79

22 files changed

+12757
-14285
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Streamplot last row and column fixed
2+
------------------------------------
3+
4+
A bug was fixed where the last row and column of data in
5+
`~.Axes.axes.streamplot` were being dropped.

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
Loading
Binary file not shown.
Loading

0 commit comments

Comments
 (0)
0