Skip to content

Commit

Permalink
Merge pull request #5230 from mdboom/numpy1-10-compat
Browse files Browse the repository at this point in the history
Fix: casting bug in streamplot
  • Loading branch information
tacaswell committed Oct 12, 2015
1 parent 167e1c3 commit 72ecc9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/streamplot.py
Expand Up @@ -136,7 +136,7 @@ def streamplot(axes, x, y, u, v, density=1, linewidth=None, color=None,
# Convert start_points from data to array coords
# Shift the seed points from the bottom left of the data so that
# data2grid works properly.
sp2 = np.asanyarray(start_points).copy()
sp2 = np.asanyarray(start_points, dtype=np.float).copy()
sp2[:, 0] += np.abs(x[0])
sp2[:, 1] += np.abs(y[0])
for xs, ys in sp2:
Expand Down

0 comments on commit 72ecc9c

Please sign in to comment.