Skip to content

Commit 42301ea

Browse files
committed
Merge pull request #2100 from glyg/master
Remove DeprecationWarning in simple_linear_interpolation
1 parent 7c8f551 commit 42301ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/cbook.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1712,8 +1712,8 @@ def simple_linear_interpolation(a, steps):
17121712
a0 = a[0:-1]
17131713
a1 = a[1:]
17141714
delta = ((a1 - a0) / steps)
1715-
1716-
for i in range(1, int(steps)):
1715+
steps = int(steps)
1716+
for i in range(1, steps):
17171717
result[i::steps] = delta * i + a0
17181718
result[steps::steps] = a1
17191719

0 commit comments

Comments
 (0)