From d0512f92b614d84cf521913aace14b6accee4182 Mon Sep 17 00:00:00 2001 From: Max Zwiessele Date: Sun, 21 Apr 2013 10:58:46 +0100 Subject: [PATCH] xticklabels improved --- GPy/kern/kern.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GPy/kern/kern.py b/GPy/kern/kern.py index 414a911f..ca9d80ea 100644 --- a/GPy/kern/kern.py +++ b/GPy/kern/kern.py @@ -70,8 +70,8 @@ class kern(parameterised): ard_params = 1./p.lengthscale ax.bar(np.arange(len(ard_params)) - 0.4, ard_params) - ax.set_xticks(np.arange(len(ard_params)), - ["${}$".format(i + 1) for i in range(len(ard_params))]) + ax.set_xticks(np.arange(len(ard_params))) + ax.set_xticklabels([r"${}$".format(i + 1) for i in range(len(ard_params))]) return ax def _transform_gradients(self,g):