I need to create an interactive scatter plot and need to use hue option ( AS USED IN SEABORN ). I'm using Plotly and cufflinks to create scatter but I'm unable to get hue option in it. Can anyone pls help.
Asked
Active
Viewed 380 times
1 Answers
0
import plotly.express as px
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
size='petal_length', hover_data=['petal_width'])
fig.show()
See Color in px.scatter similar to hue.

ketan gangal
- 33
- 1
- 8