plot_latent bug-fix in mrd

This commit is contained in:
Max Zwiessele 2013-06-27 11:11:41 +01:00
parent 26260c355c
commit 8cdedf2edb
2 changed files with 3 additions and 2 deletions

View file

@ -75,7 +75,8 @@ class kern(Parameterized):
if hasattr(p, 'ARD') and p.ARD: if hasattr(p, 'ARD') and p.ARD:
if title is None: if title is None:
ax.set_title('ARD parameters, %s kernel' % p.name) ax.set_title('ARD parameters, %s kernel' % p.name)
else:
ax.set_title(title)
if p.name == 'linear': if p.name == 'linear':
ard_params = p.variances ard_params = p.variances
else: else:

View file

@ -315,7 +315,7 @@ class MRD(Model):
return fig return fig
def plot_latent(self, fignum=None, ax=None, *args, **kwargs): def plot_latent(self, fignum=None, ax=None, *args, **kwargs):
fig = self.gref.plot_X_1d(*args, **kwargs) # self._handle_plotting(fignum, ax, lambda i, g, ax: g.plot_latent(ax=ax, *args, **kwargs)) fig = self.gref.plot_latent(*args, **kwargs) # self._handle_plotting(fignum, ax, lambda i, g, ax: g.plot_latent(ax=ax, *args, **kwargs))
return fig return fig
def _debug_plot(self): def _debug_plot(self):