From 2e71bc052bc2c61d067c6cf17327b1b095d7a283 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Tue, 6 Oct 2015 18:38:43 +0100 Subject: [PATCH] [tests] failing although the same... --- GPy/plotting/matplot_dep/controllers/imshow_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPy/plotting/matplot_dep/controllers/imshow_controller.py b/GPy/plotting/matplot_dep/controllers/imshow_controller.py index ceeda262..d4403f94 100644 --- a/GPy/plotting/matplot_dep/controllers/imshow_controller.py +++ b/GPy/plotting/matplot_dep/controllers/imshow_controller.py @@ -68,7 +68,7 @@ class ImAnnotateController(ImshowController): xoffset, yoffset = self._offsets(xmin, xmax, ymin, ymax) xlin = numpy.linspace(xmin-xoffset, xmax+xoffset, self.resolution, endpoint=False) ylin = numpy.linspace(ymin-yoffset, ymax+yoffset, self.resolution, endpoint=False) - for [[i, x], [j, y]], text in itertools.izip(itertools.product(enumerate(xlin), enumerate(ylin)), view[1:]): + for [[i, x], [j, y]], text in zip(itertools.product(enumerate(xlin), enumerate(ylin)), view[1:]): text.set_x(x + xoffset) text.set_y(y + yoffset) text.set_text("{}".format(X[1][j, i]))