From cf3e5220697230b780a2a1cdcda9b81aaa002823 Mon Sep 17 00:00:00 2001 From: Ricardo Andrade Date: Thu, 7 Feb 2013 11:36:22 +0000 Subject: [PATCH] Change in plot() y-limits --- GPy/models/GP.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/models/GP.py b/GPy/models/GP.py index f8bd27bf..403f1597 100644 --- a/GPy/models/GP.py +++ b/GPy/models/GP.py @@ -243,7 +243,7 @@ class GP(model): m, var, lower, upper = self.predict(Xnew, slices=which_functions) gpplot(Xnew,m, lower, upper) pb.plot(self.X[which_data],self.likelihood.data[which_data],'kx',mew=1.5) - ymin,ymax = lower.min(),upper.max() + ymin,ymax = self.likelihood.data.min() -.1*(upper.max()-lower.min()), self.likelihood.data.max()+.1*(upper.max()-lower.min()) pb.xlim(xmin,xmax) pb.ylim(ymin,ymax)