From 3761d186f3debcad86bba9d43ef48977420fed2c Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Fri, 19 Feb 2016 17:15:29 +0000 Subject: [PATCH] [plotting] limits added --- GPy/plotting/gpy_plot/gp_plots.py | 4 ++-- GPy/plotting/gpy_plot/plot_util.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/GPy/plotting/gpy_plot/gp_plots.py b/GPy/plotting/gpy_plot/gp_plots.py index 3e265842..7439bd9d 100644 --- a/GPy/plotting/gpy_plot/gp_plots.py +++ b/GPy/plotting/gpy_plot/gp_plots.py @@ -341,8 +341,8 @@ def plot(self, plot_limits=None, fixed_inputs=None, if hasattr(self, 'Z') and plot_inducing: plots.update(_plot_inducing(self, canvas, visible_dims, projection, 'Inducing')) if plot_data: - plots.update(_plot_data(self, canvas, which_data_rows, which_data_ycols, visible_dims, projection, "Data")) - plots.update(_plot_data_error(self, canvas, which_data_rows, which_data_ycols, visible_dims, projection, "Data Error")) + plots.update(_plot_data(self, canvas, which_data_rows, which_data_ycols, free_dims, projection, "Data")) + plots.update(_plot_data_error(self, canvas, which_data_rows, which_data_ycols, free_dims, projection, "Data Error")) plots.update(_plot(self, canvas, plots, helper_data, helper_prediction, levels, plot_inducing, plot_density, projection)) if plot_raw and (samples_likelihood > 0): helper_prediction = helper_predict_with_model(self, helper_data[2], False, diff --git a/GPy/plotting/gpy_plot/plot_util.py b/GPy/plotting/gpy_plot/plot_util.py index a910cd6f..4e71a3bc 100644 --- a/GPy/plotting/gpy_plot/plot_util.py +++ b/GPy/plotting/gpy_plot/plot_util.py @@ -349,7 +349,7 @@ def x_frame1D(X,plot_limits=None,resolution=None): xmin,xmax = X.min(0),X.max(0) xmin, xmax = xmin-0.25*(xmax-xmin), xmax+0.25*(xmax-xmin) elif len(plot_limits) == 2: - xmin, xmax = plot_limits + xmin, xmax = map(np.atleast_1d, plot_limits) else: raise ValueError("Bad limits for plotting")