Thanks to visit codestin.com Credit goes to github.com
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 0367bbf commit 1a7e2fbCopy full SHA for 1a7e2fb
1 file changed
lib/mpl_toolkits/mplot3d/axes3d.py
@@ -2565,7 +2565,7 @@ def calc_arrow(uvw, angle=15):
2565
# If any row of UVW is all zeros, don't make a quiver for it
2566
mask = norm > 1e-10
2567
XYZ = XYZ[mask]
2568
- UVW = UVW[mask] / norm[mask, np.newaxis]
+ UVW = UVW[mask] / norm[mask].reshape((-1, 1))
2569
2570
if len(XYZ) > 0:
2571
# compute the shaft lines all at once with an outer product
0 commit comments