From cac0e7da13cf2b31392e24eca8b9ec54a6d7c880 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Wed, 29 Jan 2014 09:56:57 +0000 Subject: [PATCH] plotting bug for bgplvm fixed --- GPy/models_modules/bayesian_gplvm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPy/models_modules/bayesian_gplvm.py b/GPy/models_modules/bayesian_gplvm.py index 57e50955..74eeb4b7 100644 --- a/GPy/models_modules/bayesian_gplvm.py +++ b/GPy/models_modules/bayesian_gplvm.py @@ -272,7 +272,8 @@ class BayesianGPLVM(SparseGP, GPLVM): if i < self.X.shape[1] - 1: a.set_xticklabels('') pylab.draw() - fig.tight_layout(h_pad=.01) # , rect=(0, 0, 1, .95)) + if ax is None: + fig.tight_layout(h_pad=.01) # , rect=(0, 0, 1, .95)) return fig def getstate(self):