Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a7e2fb

Browse files
fix for old versions of numpy
1 parent 0367bbf commit 1a7e2fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2565,7 +2565,7 @@ def calc_arrow(uvw, angle=15):
25652565
# If any row of UVW is all zeros, don't make a quiver for it
25662566
mask = norm > 1e-10
25672567
XYZ = XYZ[mask]
2568-
UVW = UVW[mask] / norm[mask, np.newaxis]
2568+
UVW = UVW[mask] / norm[mask].reshape((-1, 1))
25692569

25702570
if len(XYZ) > 0:
25712571
# compute the shaft lines all at once with an outer product

0 commit comments

Comments
 (0)