Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3528105

Browse files
committed
Merge pull request #5230 from mdboom/numpy1-10-compat
Fix: casting bug in streamplot
2 parents b3290d4 + a15ad91 commit 3528105

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/streamplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
136136
# Convert start_points from data to array coords
137137
# Shift the seed points from the bottom left of the data so that
138138
# data2grid works properly.
139-
sp2 = np.asanyarray(start_points).copy()
139+
sp2 = np.asanyarray(start_points, dtype=np.float).copy()
140140
sp2[:, 0] += np.abs(x[0])
141141
sp2[:, 1] += np.abs(y[0])
142142
for xs, ys in sp2:

0 commit comments

Comments
 (0)