From c4b9595aeb08fe78c8b0bfa850e11b9bc24b9903 Mon Sep 17 00:00:00 2001 From: aestrivex Date: Wed, 6 Aug 2014 16:51:34 -0400 Subject: [PATCH] fix deprecation warning in simple linear interpolation --- lib/matplotlib/cbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/cbook.py b/lib/matplotlib/cbook.py index 192f1d3037d1..4617f74049f7 100644 --- a/lib/matplotlib/cbook.py +++ b/lib/matplotlib/cbook.py @@ -1737,7 +1737,7 @@ def simple_linear_interpolation(a, steps): if steps == 1: return a - steps = np.floor(steps) + steps = int(np.floor(steps)) new_length = ((len(a) - 1) * steps) + 1 new_shape = list(a.shape) new_shape[0] = new_length