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

Skip to content

Commit b8dccc0

Browse files
pep8 lint fixes
1 parent 1a7e2fb commit b8dccc0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,15 +2569,15 @@ def calc_arrow(uvw, angle=15):
25692569

25702570
if len(XYZ) > 0:
25712571
# compute the shaft lines all at once with an outer product
2572-
shafts = (XYZ - np.multiply.outer(shaft_dt, UVW)).swapaxes(0,1)
2572+
shafts = (XYZ - np.multiply.outer(shaft_dt, UVW)).swapaxes(0, 1)
25732573
# compute head direction vectors, n heads by 2 sides by 3 dimensions
25742574
head_dirs = np.array([calc_arrow(d) for d in UVW])
25752575
# compute all head lines at once, starting from where the shaft ends
2576-
heads = shafts[:,:1] - np.multiply.outer(arrow_dt, head_dirs)
2576+
heads = shafts[:, :1] - np.multiply.outer(arrow_dt, head_dirs)
25772577
# stack left and right head lines together
25782578
heads.shape = (len(arrow_dt), -1, 3)
25792579
# transpose to get a list of lines
2580-
heads = heads.swapaxes(0,1)
2580+
heads = heads.swapaxes(0, 1)
25812581

25822582
lines = list(shafts) + list(heads)
25832583
else:
@@ -2586,7 +2586,7 @@ def calc_arrow(uvw, angle=15):
25862586
linec = art3d.Line3DCollection(lines, *args[argi:], **kwargs)
25872587
self.add_collection(linec)
25882588

2589-
self.auto_scale_xyz(XYZ[:,0], XYZ[:,1], XYZ[:,2], had_data)
2589+
self.auto_scale_xyz(XYZ[:, 0], XYZ[:, 1], XYZ[:, 2], had_data)
25902590

25912591
return linec
25922592

0 commit comments

Comments
 (0)