8000 Fix casting bug in streamplot by mdboom · Pull Request #5230 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix casting bug in streamplot #5230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix casting bug in streamplot
Crashes with numpy 1.10
  • Loading branch information
mdboom committed Oct 12, 2015
commit a15ad91f4ef571be526bd224e7151c796f041383
2 changes: 1 addition & 1 deletion lib/matplotlib/streamplot.py
Original file line number Diff line number Diff line change
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