From 03dd1ba895844d512d56c97a9f5128f73d074c3b Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Wed, 17 Jul 2013 15:22:17 +0100 Subject: [PATCH] plot_ARD greatly improved, plotting of ARD paramters for multiple ARD kernels now supported --- GPy/kern/kern.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GPy/kern/kern.py b/GPy/kern/kern.py index 4786196e..3f78e5e5 100644 --- a/GPy/kern/kern.py +++ b/GPy/kern/kern.py @@ -84,7 +84,6 @@ class kern(Parameterized): xticklabels = [] bars = [] x0 = 0 - xes = [] for p in self.parts: c = Tango.nextMedium() if hasattr(p, 'ARD') and p.ARD: @@ -102,7 +101,6 @@ class kern(Parameterized): xticklabels.extend([r"$\mathrm{{{name}}}\ {x}$".format(name=p.name, x=i) for i in np.arange(len(ard_params))]) x0 += len(ard_params) x = np.arange(x0) - ax.set_xticks([]) for bar in bars: for patch, num in zip(bar.patches, np.arange(len(bar.patches))): height = patch.get_height() @@ -117,6 +115,7 @@ class kern(Parameterized): # for xi, t in zip(x, xticklabels): # ax.text(xi, maxi / 2, t, rotation=90, ha='center', va='center') # ax.set_xticklabels(xticklabels, rotation=17) + ax.set_xticks([]) ax.set_xlim(-.5, x0 - .5) if title is '': ax.legend(bbox_to_anchor=(0., 1.02, 1., .102), loc=3,