From 4f269aced18e73454592748cfd9a9aa43890b8c5 Mon Sep 17 00:00:00 2001 From: mzwiessele Date: Mon, 5 Oct 2015 03:02:07 +0100 Subject: [PATCH] [plotting] magnification plot added --- GPy/plotting/matplot_dep/plot_definitions.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/GPy/plotting/matplot_dep/plot_definitions.py b/GPy/plotting/matplot_dep/plot_definitions.py index ab06bcc7..74d1a382 100644 --- a/GPy/plotting/matplot_dep/plot_definitions.py +++ b/GPy/plotting/matplot_dep/plot_definitions.py @@ -167,15 +167,13 @@ class MatplotlibPlots(AbstractPlottingLibrary): # pop interpolate, which we actually do not do here! if 'interpolate' in kwargs: kwargs.pop('interpolate') - from itertools import tee - try: - from itertools import izip as zip - except ImportError: - # python 3 already is izip - pass - def pairwise(iterable): "s -> (s0,s1), (s1,s2), (s2, s3), ..." + from itertools import tee + #try: + # from itertools import izip as zip + #except ImportError: + # pass a, b = tee(iterable) next(b, None) return zip(a, b)