8000 Fix integers being passed as length to quiver3d. · matplotlib/matplotlib@364fd1c · GitHub
[go: up one dir, main page]

Skip to content

Commit 364fd1c

Browse files
committed
Fix integers being passed as length to quiver3d.
1 parent 1020055 commit 364fd1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,14 +2607,14 @@ def calc_arrow(uvw, angle=15):
26072607
self.add_collection(linec)
26082608
return linec
26092609

2610-
shaft_dt = np.array([0, length])
2610+
shaft_dt = np.array([0., length])
26112611
arrow_dt = shaft_dt * arrow_length_ratio
26122612

26132613
cbook._check_in_list(['tail', 'middle', 'tip'], pivot=pivot)
26142614
if pivot == 'tail':
26152615
shaft_dt -= length
26162616
elif pivot == 'middle':
2617-
shaft_dt -= length/2.
2617+
shaft_dt -= length / 2
26182618

26192619
XYZ = np.column_stack(input_args[:3])
26202620
UVW = np.column_stack(input_args[3:argi]).astype(float)

0 commit comments

Comments
 (0)
0