8000 Simplified to "if normalize" and fixed typo · matplotlib/matplotlib@0f75d91 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f75d91

Browse files
committed
Simplified to "if normalize" and fixed typo
also added a space before division. Also
1 parent ff2a207 commit 0f75d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2544,7 +2544,7 @@ def calc_arrow(uvw, angle=15):
25442544
# pivot point
25452545
pivot = kwargs.pop('pivot', 'tail')
25462546
# normalize
2547-
pivot = kwargs.pop('normalize', False)
2547+
normalize = kwargs.pop('normalize', False)
25482548

25492549
# handle args
25502550
argi = 6
@@ -2605,8 +2605,8 @@ def calc_arrow(uvw, angle=15):
26052605
# If any row of UVW is all zeros, don't make a quiver for it
26062606
mask = norm > 1e-10
26072607
XYZ = XYZ[mask]
2608-
if normalize == True:
2609-
UVW = UVW[mask]/ norm[mask].reshape((-1, 1))
2608+
if normalize:
2609+
UVW = UVW[mask] / norm[mask].reshape((-1, 1))
26102610
else:
26112611
UVW = UVW[mask]
26122612

0 commit comments

Comments
 (0)
0