From 4145d84a93afedcf2add68fbcd8e634557c2b289 Mon Sep 17 00:00:00 2001 From: Ruben van Gulik Date: Sun, 25 Sep 2016 13:06:16 +0200 Subject: [PATCH] fix: cycle py2/3 compatibility --- qtplot/linecut.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtplot/linecut.py b/qtplot/linecut.py index ebea9c1..1a7d6e5 100644 --- a/qtplot/linecut.py +++ b/qtplot/linecut.py @@ -246,7 +246,7 @@ def plot_linetrace(self, x, y, z, type, position, title, offset = float(self.le_offset.text()) line = Linetrace(x, y + index * offset, type, position) - line.set_color(self.colors.next()) + line.set_color(next(self.colors)) self.linetraces.append(line) self.ax.add_line(line)