Please let me know what is my mistake with color_discrete_sequence ?
import plotly.express as px
import pandas as pd
fig = px.line_3d(df,x='x', y='y', z='z',color='color',color_discrete_sequence='colorsec',)
Hey @Bijan, a few things in there:
- For color_discrete_sequence do not pass a dataframe column but rather a list of unique colors. If there are more traces than colors in the list, they will repeat.
- You have a typo in one of the colors (frgb instead of rgb)
Thanks for your contribution. I tried to fix the code according your comments. But still it doesn’t work. Would you fix it and send it. Thanks (Also Thanks for the typo)