[plotting] magnification plot added

This commit is contained in:
mzwiessele 2015-10-05 03:02:07 +01:00
parent 2ea9c03fb8
commit 4f269aced1

View file

@ -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)