mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-06 02:24:17 +02:00
plotting \o/
This commit is contained in:
parent
a98334e009
commit
0062a5b16f
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ def plot(kernel, x=None, plot_limits=None, which_parts='all', resolution=None, *
|
|||
raise ValueError, "Bad limits for plotting"
|
||||
|
||||
Xnew = np.linspace(xmin, xmax, resolution or 201)[:, None]
|
||||
Kx = kernel.K(Xnew, x, which_parts)
|
||||
Kx = kernel.K(Xnew, x)
|
||||
pb.plot(Xnew, Kx, *args, **kwargs)
|
||||
pb.xlim(xmin, xmax)
|
||||
pb.xlabel("x")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue