8000
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 a204ae0 commit ff2a207Copy full SHA for ff2a207
lib/mpl_toolkits/mplot3d/axes3d.py
@@ -2543,6 +2543,8 @@ def calc_arrow(uvw, angle=15):
2543
arrow_length_ratio = kwargs.pop('arrow_length_ratio', 0.3)
2544
# pivot point
2545
pivot = kwargs.pop('pivot', 'tail')
2546
+ # normalize
2547
+ pivot = kwargs.pop('normalize', False)
2548
2549
# handle args
2550
argi = 6
@@ -2603,7 +2605,10 @@ def calc_arrow(uvw, angle=15):
2603
2605
# If any row of UVW is all zeros, don't make a quiver for it
2604
2606
mask = norm > 1e-10
2607
XYZ = XYZ[mask]
- UVW = UVW[mask]
2608
+ if normalize == True:
2609
+ UVW = UVW[mask]/ norm[mask].reshape((-1, 1))
2610
+ else:
2611
+ UVW = UVW[mask]
2612
2613
if len(XYZ) > 0:
2614
# compute the shaft lines all at once with an outer product
0 commit comments