From 601cc955c8b049751ca52f3e1cfa0a1ccb1582eb Mon Sep 17 00:00:00 2001 From: Zhenwen Dai Date: Thu, 11 Apr 2019 07:56:25 +0100 Subject: [PATCH] fix the bug due to changes in Numpy (#744) --- GPy/plotting/gpy_plot/plot_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/plotting/gpy_plot/plot_util.py b/GPy/plotting/gpy_plot/plot_util.py index 96a1db42..fdc4cbe5 100644 --- a/GPy/plotting/gpy_plot/plot_util.py +++ b/GPy/plotting/gpy_plot/plot_util.py @@ -356,7 +356,7 @@ def x_frame1D(X,plot_limits=None,resolution=None): else: raise ValueError("Bad limits for plotting") - Xnew = np.linspace(xmin,xmax,resolution or 200)[:,None] + Xnew = np.linspace(float(xmin),float(xmax),int(resolution) or 200)[:,None] return Xnew, xmin, xmax def x_frame2D(X,plot_limits=None,resolution=None):