From 5a4bf117c169cecbbbe247817c75d838913a6084 Mon Sep 17 00:00:00 2001 From: Juan Osorio Date: Wed, 26 Feb 2020 20:35:33 +0100 Subject: [PATCH] Add type to d_mat , np.linspace requires a np.int --- smithplot/smithaxes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smithplot/smithaxes.py b/smithplot/smithaxes.py index 2ed8cbb..281b28f 100644 --- a/smithplot/smithaxes.py +++ b/smithplot/smithaxes.py @@ -1005,7 +1005,7 @@ def draw_nonfancy(grid): len_x, len_y = len(xticks) - 1, len(yticks) - 1 # 2. Step: calculate optimal gridspacing for each quadrant - d_mat = np.ones((len_x, len_y, 2)) + d_mat = np.ones((len_x, len_y, 2), dtype=np.int) # TODO: optimize spacing algorithm for i in range(len_x):