mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 16:52:39 +02:00
[plotting util] faster generation of grid
This commit is contained in:
parent
c4020cd2eb
commit
a35ed532a8
1 changed files with 1 additions and 1 deletions
|
|
@ -379,5 +379,5 @@ def x_frame2D(X,plot_limits=None,resolution=None):
|
|||
|
||||
resolution = resolution or 50
|
||||
xx, yy = np.mgrid[xmin[0]:xmax[0]:1j*resolution,xmin[1]:xmax[1]:1j*resolution]
|
||||
Xnew = np.vstack((xx.flatten(),yy.flatten())).T
|
||||
Xnew = np.c_[xx.flat, yy.flat]
|
||||
return Xnew, xx, yy, xmin, xmax
|
||||
Loading…
Add table
Add a link
Reference in a new issue