From 0062a5b16f726158790185d92492fbf53407b40e Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Mon, 3 Mar 2014 15:07:52 +0000 Subject: [PATCH] plotting \o/ --- GPy/kern/_src/kern.py | 2 +- GPy/plotting/matplot_dep/kernel_plots.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/kern/_src/kern.py b/GPy/kern/_src/kern.py index 14e6ae49..07f3fdf7 100644 --- a/GPy/kern/_src/kern.py +++ b/GPy/kern/_src/kern.py @@ -73,7 +73,7 @@ class Kern(Parameterized): See GPy.plotting.matplot_dep.plot """ assert "matplotlib" in sys.modules, "matplotlib package has not been imported." - from ..plotting.matplot_dep import kernel_plots + from ...plotting.matplot_dep import kernel_plots kernel_plots.plot(self,*args) def plot_ARD(self, *args, **kw): diff --git a/GPy/plotting/matplot_dep/kernel_plots.py b/GPy/plotting/matplot_dep/kernel_plots.py index b55a0e53..b3227e43 100644 --- a/GPy/plotting/matplot_dep/kernel_plots.py +++ b/GPy/plotting/matplot_dep/kernel_plots.py @@ -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")