Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Prevent warning with masked array inputs

  • Loading branch information...
commit 1d4682cec318cfb909b6de5370feb7e8d0657a81 1 parent 0d7a1d1
@tonysyu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/matplotlib/streamplot.py
View
2  lib/matplotlib/streamplot.py
@@ -325,7 +325,7 @@ def get_integrator(u, v, dmap, minlength):
# speed (path length) will be in axes-coordinates
u_ax = u / dmap.grid.nx
v_ax = v / dmap.grid.ny
- speed = np.sqrt(u_ax**2 + v_ax**2)
+ speed = np.ma.sqrt(u_ax**2 + v_ax**2)
def forward_time(xi, yi):
ds_dt = interpgrid(speed, xi, yi)
Please sign in to comment.
Something went wrong with that request. Please try again.