Skip to content

Commit

Permalink
fix: cycle py2/3 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubenknex committed Sep 25, 2016
1 parent b6029d1 commit 4145d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qtplot/linecut.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4145d84

Please sign in to comment.