From 1e45a7cddde7866f157f889a29ac02f6493ebe5e Mon Sep 17 00:00:00 2001 From: Ricardo Date: Thu, 3 Sep 2015 17:29:39 +0100 Subject: [PATCH] gperrors color as parameter --- GPy/plotting/matplot_dep/base_plots.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/GPy/plotting/matplot_dep/base_plots.py b/GPy/plotting/matplot_dep/base_plots.py index 80f114b1..382d530d 100644 --- a/GPy/plotting/matplot_dep/base_plots.py +++ b/GPy/plotting/matplot_dep/base_plots.py @@ -61,7 +61,12 @@ def gperrors(x, mu, lower, upper, edgecol=None, ax=None, fignum=None, **kwargs): edgecol='#3300FF' if not 'alpha' in kwargs.keys(): - kwargs['alpha'] = 0.3 + kwargs['alpha'] = 1. + + + if not 'lw' in kwargs.keys(): + kwargs['lw'] = 1. + plots.append(axes.errorbar(x,mu,yerr=np.vstack([mu-lower,upper-mu]),color=edgecol,**kwargs)) plots[-1][0].remove()