Skip to content

Commit

Permalink
fix: Use next(colors) instead of colors.next() for generator
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 4, 2023
1 parent 74307f1 commit 21b2b10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion agatecharts/charts/bars.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def plot(self, table, axes):
series_positions,
value_column,
bar_height,
color=colors.next(),
color=next(colors),
linewidth=0,
label=value_column_name
)
Expand Down
2 changes: 1 addition & 1 deletion agatecharts/charts/columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def plot(self, table, axes):
series_positions,
value_column,
bar_width,
color=colors.next(),
color=next(colors),
linewidth=0,
label=value_column_name
)
Expand Down
2 changes: 1 addition & 1 deletion agatecharts/charts/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def plot(self, table, axes):
x_column,
y_column,
linewidth=2,
color=colors.next(),
color=next(colors),
label=y_column_name
)

Expand Down

0 comments on commit 21b2b10

Please sign in to comment.