Skip to content

Commit 9877224

Browse files
committed
Merge pull request matplotlib#2100 from glyg/master
Remove DeprecationWarning in simple_linear_interpolation
1 parent 72af8a4 commit 9877224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/cbook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,8 +1511,8 @@ def simple_linear_interpolation(a, steps):
15111511
a0 = a[0:-1]
15121512
a1 = a[1:]
15131513
delta = ((a1 - a0) / steps)
1514-
1515-
for i in range(1, int(steps)):
1514+
steps = int(steps)
1515+
for i in range(1, steps):
15161516
result[i::steps] = delta * i + a0
15171517
result[steps::steps] = a1
15181518

0 commit comments

Comments
 (0)