fix the bug due to changes in Numpy (#744)

This commit is contained in:
Zhenwen Dai 2019-04-11 07:56:25 +01:00 committed by GitHub
parent 313fb7c07e
commit 601cc955c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):