From 72ecc9cad306187152bce6887817015c6ad02378 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 12 Oct 2015 19:24:45 -0400 Subject: [PATCH] Merge pull request #5230 from mdboom/numpy1-10-compat Fix: casting bug in streamplot --- lib/matplotlib/streamplot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/streamplot.py b/lib/matplotlib/streamplot.py index ea33cde6b61a..184e50107017 100644 --- a/lib/matplotlib/streamplot.py +++ b/lib/matplotlib/streamplot.py @@ -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: