🚀 Gen 5 of the leading AI app deployment platform launches October 6. Click for the livestream.

Number of colors scatterplot

Hello, I would like to know if there is a limitation in the number of colors used by the scatterplot, in particular it seems that if I have more than 10 categories the colors are repeated, this is the code that I used:

go.Scattergl(
                    x=coord.loc[coord.iloc[:, 2] == i, 0],
                    y=coord.loc[coord.iloc[:, 2] == i, 1],
                    mode='markers',
                    opacity=0.5,
                    marker=dict(
                        size=4,
                        line=dict(width=0.2, color='white')),
                    name=i) for i in cl],

Can you help me?
Thank you.

@dash_r, the default list of color choices is 10 elements so if you have more traces than that it will start reusing the colors. You can define your own colorway of more than 10 elements and add it to the layout as in this example.