Skip to content

Commit 55fd7b7

Browse files
committed
fixing color_index
1 parent 045bdef commit 55fd7b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

circuitpython_uplot/ubar.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ def __init__(
6868

6969
plot._plot_palette[plot._index_colorused] = color
7070

71+
if plot._index_colorused >= 14:
72+
plot._index_colorused = 0
73+
7174
if fill:
7275
for i, _ in enumerate(x):
7376
plot.append(

0 commit comments

Comments
 (0)