mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-13 22:12:38 +02:00
[plotting] magnification plot added
This commit is contained in:
parent
2ea9c03fb8
commit
4f269aced1
1 changed files with 5 additions and 7 deletions
|
|
@ -167,15 +167,13 @@ class MatplotlibPlots(AbstractPlottingLibrary):
|
||||||
# pop interpolate, which we actually do not do here!
|
# pop interpolate, which we actually do not do here!
|
||||||
if 'interpolate' in kwargs: kwargs.pop('interpolate')
|
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):
|
def pairwise(iterable):
|
||||||
"s -> (s0,s1), (s1,s2), (s2, s3), ..."
|
"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)
|
a, b = tee(iterable)
|
||||||
next(b, None)
|
next(b, None)
|
||||||
return zip(a, b)
|
return zip(a, b)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue