Change defaults line colors - Scatter

Is it possible to change the defaults line colors besides manually setting the color ? Iโ€™ve noticed that currently, itโ€™s blue then orange.

Hereโ€™s one what to do it: https://codepen.io/etpinard/pen/VQwMQL?editors=0010

1 Like

Note: I changed the category to API/Python.

I am working with random number of traces. It is then difficult to explicitly assign specific colors to specific traces.

I was more looking for a programmatically method to change the default palette. As you can find when you edit your chart:

Capture