We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e1a32 commit c3d60d3Copy full SHA for c3d60d3
lib/mpl_toolkits/mplot3d/axes3d.py
@@ -2986,6 +2986,10 @@ 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
+ if normalize:
2991
+ UVW = UVW / norm.reshape((-1, 1))
2992
+
2993
if len(XYZ) > 0:
2994
# compute the shaft lines all at once with an outer product
2995
shafts = (XYZ - np.multiply.outer(shaft_dt, UVW)).swapaxes(0, 1)
0 commit comments