Skip to content

Commit 2b5b7f7

Browse files
committed
fix python3 conflict
1 parent 9b2166e commit 2b5b7f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plotly/tools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1589,7 +1589,7 @@ def create_streamline(x, y, u, v,
15891589
v = v.T # Transpose
15901590
15911591
# Create streamline
1592-
streamline = TraceFactory.create_streamline(x, y, u, v, arrow_scale= 1)
1592+
streamline = TraceFactory.create_streamline(x, y, u, v, arrow_scale=.1)
15931593
15941594
# Plot
15951595
fig=Figure()
@@ -2012,7 +2012,8 @@ def get_streamline_arrows(self):
20122012
arrow_start_x = np.empty((len(self.st_x)))
20132013
arrow_start_y = np.empty((len(self.st_y)))
20142014
for index in range(len(self.st_x)):
2015-
arrow_end_x[index] = self.st_x[index][(len(self.st_x[index]) / 3)]
2015+
arrow_end_x[index] = (self.st_x[index]
2016+
[int(len(self.st_x[index]) / 3)])
20162017
arrow_start_x[index] = (self.st_x[index]
20172018
[(len(self.st_x[index]) / 3) - 1])
20182019
arrow_end_y[index] = self.st_y[index][(len(self.st_y[index]) / 3)]

0 commit comments

Comments
 (0)