We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2aa4ee commit e1e1a32Copy full SHA for e1e1a32
1 file changed
lib/mpl_toolkits/mplot3d/axes3d.py
@@ -2986,14 +2986,6 @@ def calc_arrows(UVW):
2986
# Normalize rows of UVW
2987
norm = np.linalg.norm(UVW, axis=1)
2988
2989
- # If any row of UVW is all zeros, don't make a quiver for it
2990
- mask = norm > 0
2991
- XYZ = XYZ[mask]
2992
- if normalize:
2993
- UVW = UVW[mask] / norm[mask].reshape((-1, 1))
2994
- else:
2995
- UVW = UVW[mask]
2996
-
2997
if len(XYZ) > 0:
2998
# compute the shaft lines all at once with an outer product
2999
shafts = (XYZ - np.multiply.outer(shaft_dt, UVW)).swapaxes(0, 1)
@@ -3006,7 +2998,7 @@ def calc_arrows(UVW):
3006
# transpose to get a list of lines
3007
heads = heads.swapaxes(0, 1)
3008
3000
3009
- lines = [*shafts, *heads]
3001
+ lines = [*shafts, *heads[::2], *heads[1::2]]
3010
3002
else:
3011
3003
lines = []
3012
3004
0 commit comments