moved plot functionality from add to kern

This commit is contained in:
James Hensman 2014-02-26 14:30:28 +00:00
parent 26aeb5e1db
commit 9867330861
4 changed files with 17 additions and 24 deletions

View file

@ -68,6 +68,14 @@ class Kern(Parameterized):
"""
raise NotImplementedError
def plot(self, *args, **kwargs):
"""
See GPy.plotting.matplot_dep.plot
"""
assert "matplotlib" in sys.modules, "matplotlib package has not been imported."
from ..plotting.matplot_dep import kernel_plots
kernel_plots.plot(self,*args)
def plot_ARD(self, *args, **kw):
"""
See :class:`~GPy.plotting.matplot_dep.kernel_plots`